#3158
Find the XOR of Numbers Which Appear Twice
newbie · 195 · lc easy +16 · 78.8% accepted · 165 likes · top 90%
Description
Given an array nums where each value appears once or twice, return the bitwise XOR of all values that appear exactly twice, or 0 if there are no duplicates.
Code
1
2
3