We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f67fc91 commit 81a67aaCopy full SHA for 81a67aa
solution/0191.Number of 1 Bits/Solution.java
@@ -0,0 +1,5 @@
1
+public class Solution {
2
+ public int hammingWeight(int n) {
3
+ return Integer.bitCount(n);
4
+ }
5
+}
0 commit comments