You are viewing a single comment's thread. Return to all comments →
string s1,s2; cin>>s1>>s2; int co=0; for(char i='a'; i<='z'; i++) co+=abs(count(s1.begin(), s1.end(),i)-count(s2.begin(), s2.end(),i)); cout<<co; return 0;
Making Anagrams
You are viewing a single comment's thread. Return to all comments →