上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 28 下一页

2015年4月26日

摘要: 题目:Givennnon-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining... 阅读全文
posted @ 2015-04-26 10:02 承续缘 阅读(189) 评论(0) 推荐(0) 编辑

2015年4月25日

摘要: 题目:Determine if a Sudoku is valid, according to:Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where empty cells are filled wi... 阅读全文
posted @ 2015-04-25 22:27 承续缘 阅读(220) 评论(0) 推荐(0) 编辑

2015年4月24日

摘要: 题目:The set[1,2,3,…,n]contains a total ofn! unique permutations.By listing and labeling all of the permutations in order,We get the following sequence ... 阅读全文
posted @ 2015-04-24 09:05 承续缘 阅读(213) 评论(0) 推荐(0) 编辑

2015年4月23日

摘要: 题目:Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.If such arrangement is not poss... 阅读全文
posted @ 2015-04-23 16:24 承续缘 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 题目:Given an array and a value, remove all instances of that value in place and return the new length.The order of elements can be changed. It doesn't ... 阅读全文
posted @ 2015-04-23 14:26 承续缘 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 题目:Given an arraySofnintegers, are there elementsa,b,c, anddinSsuch thata+b+c+d= target? Find all unique quadruplets in the array which gives the sum ... 阅读全文
posted @ 2015-04-23 13:09 承续缘 阅读(169) 评论(0) 推荐(0) 编辑

2015年4月19日

摘要: 题目:Given an arraySofnintegers, find three integers inSsuch that the sum is closest to a given number, target. Return the sum of the three integers. Yo... 阅读全文
posted @ 2015-04-19 21:00 承续缘 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 题目:Given an arraySofnintegers, are there elementsa,b,cinSsuch thata+b+c= 0? Find all unique triplets in the array which gives the sum of zero.Note:Ele... 阅读全文
posted @ 2015-04-19 15:35 承续缘 阅读(211) 评论(0) 推荐(0) 编辑

2015年4月18日

摘要: 题目:Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two... 阅读全文
posted @ 2015-04-18 11:18 承续缘 阅读(316) 评论(0) 推荐(0) 编辑

2015年4月17日

摘要: 题目:Given an unsorted array of integers, find the length of the longest consecutive elements sequence.For example,Given[100, 4, 200, 1, 3, 2],The longe... 阅读全文
posted @ 2015-04-17 22:47 承续缘 阅读(168) 评论(0) 推荐(0) 编辑
上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 28 下一页

导航