leetcode-python
leetcode-python copied to clipboard
Update the algorithm for validate anagram
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.