Domanda di colloquio di Eventbrite

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

Risposta di colloquio

Anonimo

5 apr 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