I love how “solution approach” does not match “correct solution” for python version. Not even close, e.g. “approach” talks about xor and bisection, but code does completely different things. Makes me think, if authors do not follow these recommendations, maybe I should also ignore them, not to be distracted.
Fastest solution is just great – does string reverse, instead of actual bit operations.