JAVA_Unique Morse Code Words_LeetCode 804 풀이 class Solution { public int uniqueMorseRepresentations(String[] words) { String[] str = new String[]{".-","-...","-.-.","-..",".","..-.","--.","....","..",".---","-.-",".-..","--","-.","---",".--.","--.-",".-.","...","-","..-","...-",".--","-..-","-.--","--.."}; Set set = new HashSet(); for (String word : words) { StringBuilder sb = new StringBuilder(); for (int i = 0; i < word.length();i++) { sb.append(str[word.charAt(i) - 'a']); } set.add(...
#
JAVA
#
JAVA_LeetCode804
#
JAVA_UniqueMorseCodeWords
#
JAVA_UniqueMorseCodeWords_LeetCode804
#
UniqueMorseCodeWords_LeetCode804