Skip to content

Commit 8070c46

Browse files
authored
Update Valid Anagram - Leetcode 242.py
1 parent aa923e8 commit 8070c46

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Valid Anagram - Leetcode 242/Valid Anagram - Leetcode 242.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ def isAnagram(self, s: str, t: str) -> bool:
99

1010
return s_dict == t_dict
1111

12-
# Time complexity: O(S + T)
13-
# Space complexity: O(S + T)
12+
# Let n be the length of the longest word
13+
# Time complexity: O(n)
14+
# Space complexity: O(n)

0 commit comments

Comments
 (0)