Skip to content

Latest commit

 

History

History
11 lines (11 loc) · 187 Bytes

File metadata and controls

11 lines (11 loc) · 187 Bytes
class Solution {
    public int singleNumber(int[] nums) {
        int a=0;
        for(int i=0;i<nums.length;i++){
            a^=nums[i];
        }
        return a;
    }
}