Pergunta de entrevista da empresa Eventbrite

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

Resposta da entrevista

Sigiloso

5 de abr. de 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