Comments

Mine?

I could infer we have to make xor of first two numbers equal to xor of the rest of the array. How to proceed further?

Yup, this would be much better.

On shobhit907Try hacking a solution, 6 years ago
0

See solve2() function in my solution. Basically when adding characters in a new string, I am randomizing my solution,i.e., picking any character at that index from the given list of strings.

What do you mean by O(n), but faster? Do you mean 'with smaller constant factor'?

⚡Lightning speed editorial

You may see my binary search implemented solution. 79500682

Thanks a lot for the great explanation

Can you tell how you reduced the problem to this?