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 72df4a9 commit 82e6ecbCopy full SHA for 82e6ecb
1 file changed
number-of-1-bits/reeseo3o.js
@@ -0,0 +1 @@
1
+const hammingWeight = (n) => n.toString(2).split("").filter(b => b === "1").length;
0 commit comments