International Morse Code maps each of the
[".-", "-...", "-.-.", "-..", ".", "..-.", "--.", "....", "..", ".---", "-.-", ".-..", "--", "-.", "---", ".--.", "--.-", ".-.", "...", "-", "..-", "...-", ".--", "-..-", "-.--", "--.."]
Each element in the sequence corresponds to a letter from 'a' through 'z' in alphabetical order.
The transformation of a word is formed by concatenating the Morse code representations of each of its individual characters.
Given an array of strings words, return the number of distinct Morse code transformations formed by all words in words.
Constraints:
words.length
words[i].length
words[i] consists of lowercase English letters.
International Morse Code maps each of the
[".-", "-...", "-.-.", "-..", ".", "..-.", "--.", "....", "..", ".---", "-.-", ".-..", "--", "-.", "---", ".--.", "--.-", ".-.", "...", "-", "..-", "...-", ".--", "-..-", "-.--", "--.."]
Each element in the sequence corresponds to a letter from 'a' through 'z' in alphabetical order.
The transformation of a word is formed by concatenating the Morse code representations of each of its individual characters.
Given an array of strings words, return the number of distinct Morse code transformations formed by all words in words.
Constraints:
words.length
words[i].length
words[i] consists of lowercase English letters.