136 Single Number – Medium
Problem:
Thoughts:
Solutions:
public class Solution {
public int singleNumber(int[] A) {
int result = 0;
for (int i = 0; i < A.length; i ++)
result = result ^ A[i];
return result;
}
}Last updated