/leetCode-1

solving leetCode problems by JavaScript

Primary LanguageHTML

使用JavaScript解决leetCode问题

image

字符转ascii码:charCodeAt(), 'a'.charCodeAt() => 97

ascii码转字符:fromCharCode(), String.fromCharCode(97) => 'a' (该方法是 String 的静态方法)