Skip to content

Commit 891ee93

Browse files
committed
changed space complexity from O(n) to O(1)
1 parent cb1b384 commit 891ee93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

missing-number/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(n)
2+
# SC : O(1)
33
class Solution:
44
def missingNumber(self, nums: List[int]) -> int:
55
n = len(nums)

0 commit comments

Comments
 (0)