Valid Anagram
Check whether two strings use exactly the same letters the same number of times.
The problem
Implement Solution.isAnagram(s, t). Return True if t is an anagram of s, meaning t uses exactly the same letters as s, each the same number of times, in any order. Otherwise return False. Both strings contain only lowercase English letters and either may be empty.
Starter code
class Solution:
def isAnagram(self, s, t):
passPublic examples
s = "pearl", t = "paler"givesTrues = "aabb", t = "abbb"givesFalse
One thought at a time.
