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 26ce291 commit 139e89dCopy full SHA for 139e89d
number-of-1-bits/dylan-jung.cpp
@@ -0,0 +1,6 @@
1
+class Solution {
2
+public:
3
+ int hammingWeight(int n) {
4
+ return popcount((unsigned int)n);
5
+ }
6
+};
0 commit comments