Unique numbers-1

the code which sanket bhaiya written in this video is not giving right output when i am giving 6 inputs instead of 7 and all the input numbers are same except the 3 in the last i had removed that and it is giving answer as 5 where as sanket bhaiya said that it will give 2 output 3 and 6 in that case

The condition for the problem was that- every number must occur twice except one number which is occurring only once. Check the conditions and provide input accordingly.

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.