Nice! Another way would be bit-wise manipulation. Perform XOR operation for every element. The result of XOR operations will be our required result.
wow i would love to know how to do that. Not so good with bit manipulations. Please can you help. would love to learn from you thank you.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Nice!
Another way would be bit-wise manipulation.
Perform XOR operation for every element. The result of XOR operations will be our required result.
wow i would love to know how to do that. Not so good with bit manipulations. Please can you help. would love to learn from you thank you.