Pregunta de entrevista de Eventbrite

Reverse a string, then reverse it without a library function, then reverse it most a temporary buffer

Respuesta de la entrevista

Anónimo

5 abr 2015

1) User library (str.reverse()) 2) Copy it into a secondary buffer starting at the end 3) Start from both ends and move towards the middle, XOR them to swap