Last active
April 2, 2017 13:03
-
-
Save deque-blog/2bd4222abef976e55a1a719184a8cdd9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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