We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2496829 commit 0897abcCopy full SHA for 0897abc
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