[LeetCode] 242. Valid Anagram (Python)
- ๋๋ฌด ๋จ์ํด์ ์คํ๋ ค ์ ๋๊ทธ๋จ์ด๋ผ๋ ์ ์๊ฐ ๋ ์ด๋ ค์ด ๋ฌธ์
SolutionPermalink
class Solution:
def isAnagram(self, s: str, t: str) -> bool:
return sorted(s) == sorted(t)
class Solution:
def isAnagram(self, s: str, t: str) -> bool:
return sorted(s) == sorted(t)
Leave a comment