leetcode-290-單詞規律

//使用map構建pattern與單詞之間的關係,使用set確保關係一一對應 class Solution { public:     bool wordPattern(string pattern, string str) {         vector<string> input;         int cnt = 0;         map<char, string> record;
相關文章
相關標籤/搜索