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 69660f2 commit 49b6585Copy full SHA for 49b6585
missing-number/yhkee0404.scala
@@ -0,0 +1,5 @@
1
+object Solution {
2
+ def missingNumber(nums: Array[Int]): Int = {
3
+ (1 to nums.length).reduce(_ ^ _) ^ nums.reduce(_ ^ _)
4
+ }
5
+}
0 commit comments