You are viewing a single comment's thread. Return to all comments →
C++:
int makingAnagrams(string s1, string s2) { for(int i = 0; i < s1.size(); i++) for(int j = 0; j < s2.size(); j++) if(s1[i] == s2[j]){ s1.erase(i, 1); s2.erase(j, 1); i--; j--; } return s1.size() + s2.size(); }
Making Anagrams
You are viewing a single comment's thread. Return to all comments →
C++: