上一页 1 ··· 4 5 6 7 8
摘要: 题目描述 Given an unsorted array, find the maximum difference between the successive elements in its sorted form. Return 0 if the array contains less than 阅读全文
posted @ 2019-05-30 15:17 你好哇傻小妞 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 题目描述 A peak element is an element that is greater than its neighbors. Given an input array nums, where nums[i] ≠ nums[i+1], find a peak element and re 阅读全文
posted @ 2019-05-29 22:07 你好哇傻小妞 阅读(165) 评论(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 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) 编辑
上一页 1 ··· 4 5 6 7 8