Skip to content
This repository was archived by the owner on Sep 22, 2021. It is now read-only.

Commit 10b4b16

Browse files
committed
Added code for 242 Valid Anagram
1 parent af4c6ee commit 10b4b16

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

LeetCode/0242_Valid_anagrams.py

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

0 commit comments

Comments
 (0)