leetcode-python icon indicating copy to clipboard operation
leetcode-python copied to clipboard

Update the algorithm for validate anagram

Open tlkahn opened this issue 9 years ago • 0 comments

Current algorithm does not wok for such cases like print(s.is_anagram("aabb", "abab")), since it only counts the characters but ignores the order.

tlkahn avatar Dec 09 '16 15:12 tlkahn