We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17b6e77 commit b4d7c71Copy full SHA for b4d7c71
scripts/algorithms/N/Number Complement/Number Complement.js
@@ -1,3 +1,4 @@
1
+// Runtime: 73 ms (Top 73.80%) | Memory: 42.2 MB (Top 25.76%)
2
var findComplement = function(num) {
3
return num ^ parseInt(Array(num.toString(2).length).fill("1").join(""), 2)
-}
4
+}
0 commit comments