Sollicitatievraag bij AWS Elemental

In C, reverse a string like "Hello there" --> "there Hello"

Antwoord op sollicitatievraag

Anoniem

3 apr 2019

I kind of worked out an answer using a bunch of offsets into the string, but it wasn't great. I can do it in Python: ' '.join(strin.split(' ')[::-1])