Skip to main content
2 of 2
multiple duplicates
David Richerby
  • 82.2k
  • 26
  • 144
  • 238

Map an array to 1 << A[i] and then XOR everything together. Your duplicates will be the numbers where corresponding bit is off.

Hauleth
  • 101
  • 2