You are given an array nums consisting of positive integers, where every integer appears either once or twice.
Return the bitwise XOR of all elements that appear twice in nums. If no number appears twice, return
Constraints:
nums.length
nums[i]
Each number in nums appears either once or twice.
You are given an array nums consisting of positive integers, where every integer appears either once or twice.
Return the bitwise XOR of all elements that appear twice in nums. If no number appears twice, return
Constraints:
nums.length
nums[i]
Each number in nums appears either once or twice.