【剑指offer】面试题58:翻转单词顺序

58-I. 翻转单词顺序 输入一个英文句子,翻转句子中单词的顺序,但单词内字符的顺序不变。为简单起见,标点符号和普通字母同样处理。例如输入字符串"I am a student. “,则输出"student. a am I”。web 示例 1: 输入: "the sky is blue" 输出: "blue is sky the" 示例 2: 输入: " hello world! " 输出:
相关文章
相关标签/搜索