Skip to content

Commit fa5c68d

Browse files
authored
Update Ransom Note - Leetcode 383.py
1 parent db40459 commit fa5c68d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Ransom Note - Leetcode 383.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,6 @@ def canConstruct(self, ransomNote: str, magazine: str) -> bool:
1717
counter[c] -= 1
1818

1919
return True
20+
21+
# Time Complexity: O(m + n)
22+
# Space Complexity: O(1)

0 commit comments

Comments
 (0)