Frage im Vorstellungsgespräch bei Amazon

Reverse a string.

Antwort im Vorstellungsgespräch

Anonym

27. Feb. 2012

Can do this multiple ways. Make it into a char array and swap the first and last indexes till last is <= first. Can also use .reverse() but I'm sure this wasn't why the interviewer asked me the question.