Skip to content

Commit ac9c6ee

Browse files
committed
[Leo] 4th Week solutions (fixed number-of-1-bits Time Complexity to O(k)
1 parent f0188c0 commit ac9c6ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

number-of-1-bits/Leo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def hammingWeight(self, n: int) -> int:
88

99
return counter
1010

11-
## TC: O(n), SC: O(1)
11+
## TC: O(k), SC: O(1), since given int(n) has constant length
1212

1313
# counter = 0
1414

0 commit comments

Comments
 (0)