上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 40 下一页
摘要: Given a list of non negative integers, arrange them such that they form the largest number.For example, given[3, 30, 34, 5, 9], the largest formed num... 阅读全文
posted @ 2015-10-03 04:34 amazingzoe 阅读(112) 评论(0) 推荐(0)
摘要: Given a set ofnon-overlappingintervals, insert a new interval into the intervals (merge if necessary).You may assume that the intervals were initially... 阅读全文
posted @ 2015-10-02 05:57 amazingzoe 阅读(115) 评论(0) 推荐(0)
摘要: Find the contiguous subarray within an array (containing at least one number) which has the largest product.For example, given the array[2,3,-2,4],the... 阅读全文
posted @ 2015-10-01 23:05 amazingzoe 阅读(133) 评论(0) 推荐(0)
摘要: Given an arraynumscontainingn+ 1 integers where each integer is between 1 andn(inclusive), prove that at least one duplicate number must exist. Assume... 阅读全文
posted @ 2015-10-01 08:42 amazingzoe 阅读(126) 评论(0) 推荐(0)
摘要: Find all possible combinations ofknumbers that add up to a numbern, given that only numbers from 1 to 9 can be used and each combination should be a u... 阅读全文
posted @ 2015-10-01 08:30 amazingzoe 阅读(106) 评论(0) 推荐(0)
摘要: Given a collection of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Each number ... 阅读全文
posted @ 2015-10-01 08:11 amazingzoe 阅读(129) 评论(0) 推荐(0)
摘要: Find thekth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element.For exampl... 阅读全文
posted @ 2015-10-01 06:34 amazingzoe 阅读(149) 评论(0) 推荐(0)
摘要: Given an Iterator class interface with methods:next()andhasNext(), design and implement a PeekingIterator that support thepeek()operation -- it essent... 阅读全文
posted @ 2015-10-01 06:01 amazingzoe 阅读(123) 评论(0) 推荐(0)
摘要: Given an array of strings, group anagrams together.For example, given:["eat", "tea", "tan", "ate", "nat", "bat"],Return: 1 class Solution { 2 public: ... 阅读全文
posted @ 2015-10-01 01:54 amazingzoe 阅读(137) 评论(0) 推荐(0)
摘要: Write a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are indicated by the character'.'.You may assume that there will be on... 阅读全文
posted @ 2015-09-29 04:48 amazingzoe 阅读(126) 评论(0) 推荐(0)
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 40 下一页