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 c9df583 commit 727b537Copy full SHA for 727b537
valid-anagram/mangodm-web.py
@@ -0,0 +1,9 @@
1
+from collections import Counter
2
+
3
4
+class Solution:
5
+ def isAnagram(self, s: str, t: str) -> bool:
6
+ if len(s) != len(t):
7
+ return False
8
9
+ return Counter(s) == Counter(t)
0 commit comments