3 ms·
Usually this question requires that operation be done in place. The trick is to reverse the string in place, then to reverse each word.
by richieb 15y ago
Usually this question requires that operation be done in place. The trick is to reverse the string in place, then to reverse each word.