[LeetCode] 242. Valid Anagram (Python)
- λ무 λ¨μν΄μ μ€νλ € μ λκ·Έλ¨μ΄λΌλ μ μκ° λ μ΄λ €μ΄ λ¬Έμ
Solution
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