class Solution { public: //Insert one char from stringstream queue<char>q; // 队列记录字符次序 map<char, int>mymap; // map记录字符数量 void Insert(char ch) { mymap[ch] ++; if(mymap[ch] == 1) q.push(ch); } //return the first appearence once char in current stringstre...