Loading

上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 15 下一页
摘要: 题目要求:Trapping Rain WaterGivennnon-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able ... 阅读全文
posted @ 2015-02-07 20:21 Yano_nankai 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 题目要求:First Missing PositiveGiven an unsorted integer array, find the first missing positive integer.For example,Given[1,2,0]return3,and[3,4,-1,1]retur... 阅读全文
posted @ 2015-02-07 20:14 Yano_nankai 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 题目要求:Combination Sum IIGiven a collection of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate number... 阅读全文
posted @ 2015-02-07 18:47 Yano_nankai 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 题目要求:Combination SumGiven a set of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT... 阅读全文
posted @ 2015-02-07 18:43 Yano_nankai 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 题目要求:Count and SayThe count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1is read off as"one 1"or11.1... 阅读全文
posted @ 2015-02-07 18:39 Yano_nankai 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 题目要求:Sudoku SolverWrite a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are indicated by the character'.'.You may assume tha... 阅读全文
posted @ 2015-02-07 17:58 Yano_nankai 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 题目要求:Valid SudokuDetermine if a Sudoku is valid, according to:Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where empty cells... 阅读全文
posted @ 2015-02-07 17:51 Yano_nankai 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 题目要求:Search Insert PositionGiven a sorted array and a target value, return the index if the target is found. If not, return the index where it would b... 阅读全文
posted @ 2015-02-07 17:33 Yano_nankai 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 题目要求:Search for a RangeGiven a sorted array of integers, find the starting and ending position of a given target value.Your algorithm's runtime comple... 阅读全文
posted @ 2015-02-07 17:31 Yano_nankai 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 题目要求:Search in Rotated Sorted ArraySuppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e.,0 1 2 4 5 6 7might become4 5 6 7 0 ... 阅读全文
posted @ 2015-02-07 17:22 Yano_nankai 阅读(129) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 15 下一页