Single Number


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;
}
}


posted @ 2014-12-28 13:01  江南第一少  阅读(99)  评论(0)    收藏  举报