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 a64b61f commit ec8bc19Copy full SHA for ec8bc19
valid-anagram/hajunyoo.py
@@ -2,6 +2,8 @@
2
3
4
class Solution:
5
+ # Time complexity: O(n)
6
+ # Space complexity: O(n)
7
def isAnagram(self, s: str, t: str) -> bool:
8
char_map = defaultdict(int)
9
for s1 in s:
0 commit comments