摘要: Given a collection of intervals, merge all overlapping intervals. 阅读全文
posted @ 2019-05-10 22:29 yjxyy 阅读(187) 评论(0) 推荐(0) 编辑
摘要: Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maximum jump length at that position. Determine if you are able to reach the last index. 阅读全文
posted @ 2019-05-10 22:10 yjxyy 阅读(306) 评论(0) 推荐(0) 编辑
摘要: Given an array of strings, group anagrams together. 阅读全文
posted @ 2019-05-10 22:02 yjxyy 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 假设一个单调递增的数组里的每个元素都是整数且是唯一的,请编程实现一个函数,找出数组中任意一个数值等于其下标的元素,例如,在数组{-3,-1,1,3,5}中数字3和它的下标相同。 阅读全文
posted @ 2019-05-10 21:41 yjxyy 阅读(518) 评论(0) 推荐(0) 编辑
摘要: 一个长度为n-1的递增排序数组中的所有数字都是唯一的,并且每个数字的范围都在0到n-1之内。在范围0到n-1内的n个数字中有且仅有一个数字不在该数组中,求出该数字。 阅读全文
posted @ 2019-05-10 21:37 yjxyy 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 统计一个数字在排序数组中出现的次数。 阅读全文
posted @ 2019-05-10 21:28 yjxyy 阅读(129) 评论(0) 推荐(0) 编辑