Skip to content

Commit ccaf0e0

Browse files
committed
[main] valid anagram solution
1 parent 32d80da commit ccaf0e0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

valid-anagram/jeongyunjae.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
class Solution:
2+
def isAnagram(self, s: str, t: str) -> bool:
3+
sort_s = ''.join(sorted(s))
4+
sort_t = ''.join(sorted(t))
5+
6+
return sort_s == sort_t

0 commit comments

Comments
 (0)