We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 079c201 commit a6b0a1eCopy full SHA for a6b0a1e
src/main/java/com/fishercoder/solutions/_268.java
@@ -11,7 +11,7 @@ public int missingNumber(int[] nums) {
11
int xor = 0;
12
int i = 0;
13
for (; i < nums.length; i++) {
14
- xor = xor ^ i ^ nums[i];
+ xor ^= i ^ nums[i];
15
}
16
return xor ^ i;
17
0 commit comments