Skip to content

Commit 1257307

Browse files
HYUNAHKOyhkee0404
andauthored
Update number-of-1-bits/HYUNAHKO.py
Co-authored-by: yhkee0404 <yhkee0404@gmail.com>
1 parent c3bc51b commit 1257307

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

number-of-1-bits/HYUNAHKO.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,4 @@ def hammingWeight(self, n: int) -> int:
66
if (remainder==1):
77
result+=1
88
n = n//2
9-
return result
10-
9+
return result

0 commit comments

Comments
 (0)