Frage im Vorstellungsgespräch bei Chatham Financial

Reverse a string

Antwort im Vorstellungsgespräch

Anonym

5. Sept. 2017

I initially did it using Python's [::-1], but the developers wanted me to do it in Java, as they were not familiar with Python. I then converted the string to a character array and swapped the characters around.