We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97b92bf commit 1ab2ab9Copy full SHA for 1ab2ab9
valid-anagram/paran22.py
@@ -0,0 +1,8 @@
1
+from collections import Counter
2
+
3
+class Solution:
4
+ # time complexity: O(n)
5
+ def isAnagram(self, s: str, t: str) -> bool:
6
+ return Counter(s) == Counter(t)
7
8
0 commit comments