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 2496829 commit 6b1907aCopy full SHA for 6b1907a
number-of-1-bits/gmlwls96.kt
@@ -0,0 +1,3 @@
1
+class Solution {
2
+ fun hammingWeight(n: Int): Int = n.countOneBits()
3
+}
0 commit comments