Skip to content

LC 0242 [E] Valid Anagram

Code with Senpai edited this page Mar 15, 2022 · 1 revision
class Solution:
    def isAnagram(self, s: str, t: str) -> bool:
        return Counter(s) == Counter(t)
Clone this wiki locally