Skip to content

Commit 20196cd

Browse files
committed
add: valid-anagram solved
1 parent 84c6eef commit 20196cd

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

valid-anagram/JiHyeonSu.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# 재배치하여 다른 문자를 만들 수 있는지 여부
2+
# 시간복잡도 / 공간복잡도 O(n)
3+
4+
class Solution:
5+
def isAnagram(self, s: str, t: str) -> bool:
6+
return Counter(s) == Counter(t)
7+

0 commit comments

Comments
 (0)