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 6f334e0 commit 4e2a88eCopy full SHA for 4e2a88e
solution/268.Missing Number/Solution.js
@@ -0,0 +1,3 @@
1
+const missingNumber = function(nums){
2
+ return (1 + nums.length)*nums.length/2 - nums.reduce((prev,cur)=>prev+=cur, 0);
3
+}
0 commit comments