摘要: 1. class Solution { public: string getHint(string secret, string guess) { int bulls=0,cows=0; vector<int> m(10,0); queue<int> q; for(int i=0;i<guess.s 阅读全文
posted @ 2020-03-27 10:33 qiujiejie 阅读(153) 评论(0) 推荐(0) 编辑
摘要: class Solution { public: bool wordPattern(string pattern, string str) { istringstream is(str); unordered_map<char,string> m; unordered_map<string,char 阅读全文
posted @ 2020-03-27 09:51 qiujiejie 阅读(98) 评论(0) 推荐(0) 编辑