摘要: 题目描述 Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., [0,1,2,4,5,6,7] might become [4,5,6,7,0,1,2 阅读全文
posted @ 2019-05-28 21:37 你好哇傻小妞 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 题目描述 Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., [0,1,2,4,5,6,7] might become [4,5,6,7,0,1,2 阅读全文
posted @ 2019-05-28 15:28 你好哇傻小妞 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 题目描述 Given an input string, reverse the string word by word. 题目大意 输入一个字符串,将字符串中的单词按倒序排列(单词中的字母不要倒叙排列)。 示例 E1 E2 E3 解题思路 遍历一遍字符串即可,遍历过程中保存该遍历位置不为空格的字符, 阅读全文
posted @ 2019-05-28 14:41 你好哇傻小妞 阅读(81) 评论(0) 推荐(0) 编辑