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 e9a35e3 commit dfab2efCopy full SHA for dfab2ef
number-of-1-bits/hyogshin.py
@@ -0,0 +1,3 @@
1
+class Solution:
2
+ def hammingWeight(self, n: int) -> int:
3
+ return n.bit_count()
0 commit comments