Reverse Words in a String

Given an input string, reverse the string word by word.算法 For example, Given s = "the sky is blue", return "blue is sky the".spa Update (2015-02-12): For C programmers: Try to solve it in-place in O(1
相關文章
相關標籤/搜索