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