Do quadruples count as doubles?
bool all_are_doubles(string words, int length){ map<char, bool> map; for(int i=0; i<=length-1; i++){ map[words[i]] = !(map[words[i]]); } for(auto i = map.begin(); !(i == map.end()); i++){ while(i->second){ return 0; } } return 1; }
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.