Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6b1907a

Browse files
committedJan 29, 2025·
[Week8](gmlwls96) Number of 1 Bits
1 parent 2496829 commit 6b1907a

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)
Please sign in to comment.