package leet.book.hashTablePlus;

public class SingleNumber {
    class Solution {
        public int singleNumber(int[] nums) {
            for (int i = 1; i < nums.length; i++) {
                nums[0] ^= nums[i];
            }
            return nums[0];
        }
    }
}
