Skip to content

Commit ee4469d

Browse files
committed
Add number of 1 bits solution
1 parent d39ddcd commit ee4469d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

number-of-1-bits/hyunjung-choi.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
class Solution {
2+
fun hammingWeight(n: Int) = Integer.bitCount(n)
3+
}

0 commit comments

Comments
 (0)