Help- Finding missing numbers using XOR

Revision en1, by Ishtiaq11, 2017-03-28 06:32:30

Given an array of n-2 unique numbers in range 1 to n (inclusive). I want to find the missing two numbers in the array using xor. Please help me providing the idea. Thanks in advance.

Tags xor

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Ishtiaq11 2017-03-28 06:32:30 225 Initial revision (published)