Skip to content

Commit db42f2b

Browse files
bhyun-kimDaleSeo
andauthored
change // -> >> number-of-1-bits/bhyun-kim.py
Co-authored-by: Dale Seo <[email protected]>
1 parent 299592b commit db42f2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

number-of-1-bits/bhyun-kim.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ def hammingWeight(self, n: int) -> int:
2626
if (n & i) != 0:
2727
output += 1
2828

29-
i = i // 2
29+
i = i >> 1
3030

3131
return output

0 commit comments

Comments
 (0)