Skip to content

Instantly share code, notes, and snippets.

@Se7soz
Last active January 3, 2016 05:09
Show Gist options
  • Select an option

  • Save Se7soz/8414180 to your computer and use it in GitHub Desktop.

Select an option

Save Se7soz/8414180 to your computer and use it in GitHub Desktop.
Read the How to prepare for an interview series at my blog: http://se7so.blogspot.com/2014/01/how-to-prepare-for-interview.html
bool isAnagaram(string s1, string s2) {
sort(s1.begin(), s1.end());
sort(s2.begin(), s2.end());
return s1==s2;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment