151. 翻转字符串里的单词

给定一个字符串,逐个翻转字符串中的每一个单词。html   示例 1:code 输入: "" 输出: "" the sky is blueblue is sky the 示例 2:htm 输入: "  hello world!  " 输出: "world! hello" 解释: 输入字符串能够在前面或者后面包含多余的空格,可是反转后的字符不能包括。 示例 3:字符串 输入: "a good   e
相关文章
相关标签/搜索