class Solution { public: int uniqueMorseRepresentations(vector& words) { unordered_set m; string values[26] = {".-","-...","-.-.","-..",".","..-.","--.","....","..",".---","-.-",".-..","--","-.","---",".--.","--.-",".-.","...","-","..-","...-",".--","-..-","-.--","--.."}; for(string s:words){ string a = ""; for(int i = 0;i