摘要:
Follow up for "Remove Duplicates":What if duplicates are allowed at most twice? For example,Given sorted array nums = [1,1,1,2,2,3], Your function sho 阅读全文
posted @ 2016-07-06 14:54
Miller1991
阅读(122)
评论(0)
推荐(0)
摘要:
Given a sorted array of integers, find the starting and ending position of a given target value. Your algorithm's runtime complexity must be in the or 阅读全文
posted @ 2016-07-06 14:35
Miller1991
阅读(132)
评论(0)
推荐(0)
摘要:
Given an index k, return the kth row of the Pascal's triangle. For example, given k = 3,Return [1,3,3,1]. Note:Could you optimize your algorithm to us 阅读全文
posted @ 2016-07-06 11:36
Miller1991
阅读(154)
评论(0)
推荐(0)
摘要:
For example, given numRows = 5,Return Subscribe to see which companies asked this question 1 public class Solution { 2 public List<List<Integer>> gene 阅读全文
posted @ 2016-07-06 11:06
Miller1991
阅读(170)
评论(0)
推荐(0)
摘要:
Given an array of n positive integers and a positive integer s, find the minimal length of a subarray of which the sum ≥ s. If there isn't one, return 阅读全文
posted @ 2016-07-06 10:20
Miller1991
阅读(111)
评论(0)
推荐(0)
摘要:
Given a sorted integer array without duplicates, return the summary of its ranges. For example, given [0,1,2,4,5,7], return ["0->2","4->5","7"]. Credi 阅读全文
posted @ 2016-07-06 09:46
Miller1991
阅读(181)
评论(0)
推荐(0)

浙公网安备 33010602011771号