(int[] nums)
| 2 | |
| 3 | class Solution { |
| 4 | public int missingNumber(int[] nums) { |
| 5 | int xor = 0; |
| 6 | for (int i = 0; i <= nums.length; i++) { |
| 7 | xor ^= i; |
| 8 | } |
| 9 | for (int num : nums) { |
| 10 | xor ^= num; |
| 11 | } |
| 12 | return xor; |
| 13 | } |
| 14 | } |
nothing calls this directly
no outgoing calls
no test coverage detected