LeetCodeFind the XOR of Numbers Which Appear TwiceFind the XOR of Numbers Which Appear TwiceEasyArrayHash TableBit ManipulationSolution export function duplicateNumbersXOR(nums: number[]): number { const arr = [...nums, ...new Set(nums)]; return arr.reduce((acc, num) => acc ^ num, 0); }LeetCodeFind the XOR of Numbers Which Appear Twicehttps://leetcode.com/problems/find-the-xor-of-numbers-which-appear-twice