Skip to content

Commit 51a8c31

Browse files
committed
fix : change space complexity
1 parent 5111968 commit 51a8c31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

house-robber/samthekorean.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# TC : O(n)
2-
# SC : O(1)
2+
# SC : O(n)
33
class Solution:
44
def rob(self, nums):
55
n = len(nums)

0 commit comments

Comments
 (0)