摘要:
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 阅读全文
摘要:
class Solution { public: bool wordPattern(string pattern, string str) { istringstream is(str); unordered_map<char,string> m; unordered_map<string,char 阅读全文