employer cover photo
employer logo
employer logo

AWS Elemental

Fait partie de Amazon

Est-ce votre entreprise ?

Question d’entretien chez AWS Elemental

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

Réponse à la question d'entretien

Utilisateur anonyme

3 avr. 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])