will u please elaborate the logic
Logic problem i didnt understand how input is processssing
@Aditya-Kushwaha-914550392281281
hello aditya,
the logic is based on xor property .
and the property is -> xor of a numbers with itself is 0.
example ->
- 2^2=0
- 3^3=0
- in general a^a=0
when we take xor of all array elements, then result will be required number becuase every other number will occur twice and their resultant xor will be 0.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.