LeetCode Solutions/Top Interview Questions(Easy Collection)/Array/Single Number.java
<gh_stars>0class Solution {
    public int singleNumber(int[] nums) {
        int res = 0;
        for(int i : nums){
            res ^= i;
        }
        return res;
    }
}