We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0188c0 commit ac9c6eeCopy full SHA for ac9c6ee
number-of-1-bits/Leo.py
@@ -8,7 +8,7 @@ def hammingWeight(self, n: int) -> int:
8
9
return counter
10
11
- ## TC: O(n), SC: O(1)
+ ## TC: O(k), SC: O(1), since given int(n) has constant length
12
13
# counter = 0
14
0 commit comments