leetcode-290-单词规律

//使用map构建pattern与单词之间的关系,使用set确保关系一一对应 class Solution { public:     bool wordPattern(string pattern, string str) {         vector<string> input;         int cnt = 0;         map<char, string> record;
相关文章
相关标签/搜索