Skip to content

Commit 53ab86a

Browse files
committed
valid-anagram
1 parent 07331bd commit 53ab86a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

valid-anagram/bskkimm.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from collections import Counter
2+
class Solution:
3+
def isAnagram(self, s: str, t: str) -> bool:
4+
# Anagram is a word formed by rearranging each letter of a word exactly once.
5+
# s = "anagram", t = "nagaram"
6+
return Counter(s) == Counter(t)

0 commit comments

Comments
 (0)