Unique Morse Code Words

LeetCode題目: 804. Unique Morse Code Words My solution: /** * @param {string[]} words * @return {number} */ let uniqueMorseRepresentations = words => {...

Rotate String

LeetCode題目: 796. Rotate String My solution: /** * @param {string} s * @param {string} goal * @return {boolean} */ let rotateString = (s, goal) => { ...

Jewels and Stones

LeetCode題目: 771. Jewels and Stones My solution: /** * @param {string} jewels * @param {string} stones * @return {number} */ let numJewelsInStones = (je...