Given an input string , reverse the string word by word.
1 | Input: ["t","h","e"," ","s","k","y"," ","i","s"," ","b","l","u","e"] |
Reverse the whole string, then reverse each word.
Use start
to mark the start of each string.
1 | public void reverseWords(char[] s) { |