Skip to content

Commit 0897abc

Browse files
committed
[Week8](gmlwls96) Number of 1 Bits
1 parent 2496829 commit 0897abc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

number-of-1-bits/gmlwls96.kt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
class Solution {
2+
fun hammingWeight(n: Int): Int = n.countOneBits()
3+
}

0 commit comments

Comments
 (0)