Question d’entretien chez Microsoft

Reverse words in string

Réponse à la question d'entretien

Utilisateur anonyme

28 sept. 2011

Another method is to part the words in the string from start to end and push each one onto a stack. Then pop all of the words from the stack and reconstruct the string.