Skip to content

Commit 89a29ad

Browse files
committed
valid anagram solution
1 parent 659effe commit 89a29ad

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

valid-anagram/devyejin.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from collections import Counter
2+
class Solution(object):
3+
def isAnagram(self, s, t):
4+
return Counter(s) == Counter(t)
5+
6+
7+

0 commit comments

Comments
 (0)