Your XOR explanation is the best on youtube. I randomly chose to see this video on search results and now I am surprised by such a beautiful explanation.
Watching after tons of videos in this problem. Finally i understood this now . Thank you very much. And to be honest , you explained this much better than striver.
Just came back to this video to say thank you for making this, approach 2 and 4 are my preferred ways of solving this and are perfect. Thanks for your help
In XOR, how can we sure that the diffrentiating bit will lead us to the answer. I have understood your point for putting the values in 2 different buckets accordingly but how diffrentiating bit is leading us to the solution 3^4 = 1 so what??
The video is nice but I suggest that you avoid repeating same line multiple times. For e.g "xor of 2 and 3 is 1" you have repeated this thrice ....this makes the video unnecessarily long
I hate Math solution's so damn much. They are so unintuitive to come up with during an interview especially if you never seen this problem before. I'm gonna stick to the counts tracker solution and the sign trick solution, thank you