Unique number question

This question is very simple and i have created logic of program also but still it is showing one of the test case as run error .In this i am doing xor of all numbers
here is the link of program

Hey @abhibansal252 you have initilized the size of arr as 100 in the starting itself. But size value of n can be till 10^5 so this should be arr[n]. Rest your code is fine its working properly.

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.