Unique number-1

The code explained for unique number-1 is not satisfying all the cases. for example,If i entered 4 numbers :
2 same numbers and two different numbers

hello @bhavika1550
ur input violates the constrainst.
in constraints it is clearly mentioned that there must be only one number that does not repeat and rest other element must repeat exactly twice.

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.