请问这道题怎么做?思路是什么?thanks
How to reverse words in a string? For example: input string is “I am a girl
”. Output string should be “girl a am I”. Requirement: don’t use
additional data structure. Just move chars within the string.
b**********5 发帖数: 7881
2
first reverse the entire string, then reverse each words