You are viewing a single comment's thread. Return to all comments →
Hi,
your solution is good but it can be optimized to O(n).
Here is the video explaination of my solution using XOR trick in O(n) time -
https://youtu.be/k1i6eIpeXak
Any comments and feedback will be appreciated.
Seems like cookies are disabled on this browser, please enable them to open this website
Lonely Integer
You are viewing a single comment's thread. Return to all comments →
Hi,
your solution is good but it can be optimized to O(n).
Here is the video explaination of my solution using XOR trick in O(n) time -
https://youtu.be/k1i6eIpeXak
Any comments and feedback will be appreciated.