Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Last active April 2, 2017 13:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deque-blog/2bd4222abef976e55a1a719184a8cdd9 to your computer and use it in GitHub Desktop.
Save deque-blog/2bd4222abef976e55a1a719184a8cdd9 to your computer and use it in GitHub Desktop.
bool is_anagram(std::string const& lhs, std::string const& rhs)
{
return std::is_permutation(begin(lhs), end(lhs), begin(rhs), end(rhs));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment