BITWISE OPERATOR-UNIQUE NUMBER

Ques: https://hack.codingblocks.com/app/contests/1960/404/problem
Code: https://ide.codingblocks.com/s/377780

Sir, do we have to make arr and then accept the input numbers as the ques mentions arr
although this code is accepted by hackerblock

Hey @aaliyah_beg
You can do it in either way

But you cant take an extra array other than input array :slight_smile:

Sir even this is acceptable even though i haven’t used array?

Yes I told u
You can do it in either way
Without using input array
Or with input array

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.