We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4d6eba7 + 0897abc commit a92b14bCopy full SHA for a92b14b
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