1 public int singleNumber(int[] A) { 2 int s=0; 3 for(int i=0;i<A.length;i++){ 4 s=s^A[i]; 5 } 6 return s; 7 }
1 public int singleNumber(int[] A) { 2 int s=0; 3 for(int i=0;i<A.length;i++){ 4 s=s^A[i]; 5 } 6 return s; 7 }
转载于:https://www.cnblogs.com/thehappyyouth/p/3880655.html