LeetCode—804. Unique Morse Code Words


//url:https://leetcode.com/problems/unique-morse-code-words/description/

class Solution {
public:
    int uniqueMorseRepresentations(vector& words) {
        vector codeVec={".-","-...","-.-.","-..",".","..-.","--.","....","..",".---","-.-",".-..","--","-.","---",".--.","--.-",".-.","...","-","..-","...-",".--","-..-","-.--","--.."};
        set codeset;
        for(int i=0;i

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注