上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 28 下一页

2015年5月21日

摘要: 题目:Given a collection of numbers that might contain duplicates, return all possible unique permutations.For example,[1,1,2]have the following unique p... 阅读全文
posted @ 2015-05-21 16:04 承续缘 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a collection of numbers, return all possible permutations.For example,[1,2,3]have the following permutations:[1,2,3],[1,3,2],[2,1,3],[2,3,1],... 阅读全文
posted @ 2015-05-21 10:47 承续缘 阅读(305) 评论(0) 推荐(0) 编辑

2015年5月20日

摘要: 题目:Given a collection of integers that might contain duplicates,nums, return all possible subsets.Note:Elements in a subset must be in non-descending ... 阅读全文
posted @ 2015-05-20 22:01 承续缘 阅读(256) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a set of distinct integers,nums, return all possible subsets.Note:Elements in a subset must be in non-descending order.The solution set must ... 阅读全文
posted @ 2015-05-20 11:49 承续缘 阅读(238) 评论(0) 推荐(0) 编辑

2015年5月19日

摘要: 题目:Write an efficient algorithm that searches for a value in anmxnmatrix. This matrix has the following properties:Integers in each row are sorted fro... 阅读全文
posted @ 2015-05-19 16:47 承续缘 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in... 阅读全文
posted @ 2015-05-19 16:22 承续缘 阅读(147) 评论(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 ... 阅读全文
posted @ 2015-05-19 15:28 承续缘 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 题目:Given an array withnobjects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red,... 阅读全文
posted @ 2015-05-19 11:01 承续缘 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 题目:Given an unsorted integer array, find the first missing positive integer.For example,Given[1,2,0]return3,and[3,4,-1,1]return2.Your algorithm should... 阅读全文
posted @ 2015-05-19 08:33 承续缘 阅读(172) 评论(0) 推荐(0) 编辑

2015年5月18日

摘要: 题目:Sort a linked list inO(nlogn) time using constant space complexity.代码:/** * Definition for singly-linked list. * struct ListNode { * int val; *... 阅读全文
posted @ 2015-05-18 20:36 承续缘 阅读(284) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 28 下一页

导航