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 299592b commit db42f2bCopy full SHA for db42f2b
number-of-1-bits/bhyun-kim.py
@@ -26,6 +26,6 @@ def hammingWeight(self, n: int) -> int:
26
if (n & i) != 0:
27
output += 1
28
29
- i = i // 2
+ i = i >> 1
30
31
return output
0 commit comments