sir as we have xor a no with 0 initially .does it wil not create any impact on program? and will this program also work if there are 2 differnet nos with single frequency?
Related to xor and program
@avverma11057 0^1 = 1 and 0^0 = 0
so as you can see, 0^A = A, so it clearly has no impact on the program.
If there are 2 different numbers with a single frequency, then a slightly different approach has to be used. It is covered in Unique numbers-2 problem.
Dont forget to mark your doubt as resolved!