Skip to content

Commit fee2b1f

Browse files
committed
Update Number of 1 Bits.py
Adjust Format
1 parent 3d116c9 commit fee2b1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Number of 1 Bits.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ def hammingWeight(self, n):
33
count = 0
44
while n:
55
count += 1;
6-
n = (n-1)&n
6+
n = (n-1) & n
77
return count

0 commit comments

Comments
 (0)