diff --git a/number-of-1-bits/gmlwls96.kt b/number-of-1-bits/gmlwls96.kt new file mode 100644 index 000000000..d6ab5fbca --- /dev/null +++ b/number-of-1-bits/gmlwls96.kt @@ -0,0 +1,3 @@ +class Solution { + fun hammingWeight(n: Int): Int = n.countOneBits() +}