摘要:
1/** 2 * @param {string} s 3 * @return {string} 4 */ 5var frequencySort = function(s) { 6 const record = {}; 7 const sArr = [...s]; 8 sArr.forEach(val 阅读全文
摘要:
1/** 2 * @param {string[]} words 3 * @return {string[]} 4 */ 5var findWords = function(words) { 6 let rows = ['qwertyuiop', 'asdfghjkl', 'zxcvbnm']; 7 阅读全文
摘要:
1/**2 * @param {number[]} candies3 * @return {number}4 */5var distributeCandies = function(candies) {6 const types = new Set(candies).size;78 return M 阅读全文
摘要:
1var judgeCircle = function(moves) { 2 let x = 0, y = 0; 3 for (let i = 0, l = moves.length; i < l; i++) { 4 if(moves[i] 'U') { 5 y += 1; 6 } else if 阅读全文
摘要:
1/** 2 * @param {number[]} nums1 3 * @param {number} m 4 * @param {number[]} nums2 5 * @param {number} n 6 * @return {void} Do not return anything, mo 阅读全文