Sollicitatievraag bij Chatham Financial

Reverse a string

Antwoord op sollicitatievraag

Anoniem

5 sep 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.