Pregunta de entrevista de AWS Elemental

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

Respuesta de la entrevista

Anónimo

3 abr 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])