leetcode/lcci/01.02.Check Permutation/Solution.py

4 lines
116 B
Python

class Solution:
def CheckPermutation(self, s1: str, s2: str) -> bool:
return Counter(s1) == Counter(s2)