- 博客(7)
- 收藏
- 关注
原创 Sudoku Solver
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 only one unique solution.A sudoku puzzle......
2014-03-05 13:57:58 673
原创 Valid sudoku
Determine if a Sudoku is valid, according to:Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where empty cells are filled with the character'.'.A partially filled sud...
2014-03-04 15:43:22 547
原创 Valid number
Validate if a given string is numeric.Some examples:"0" => true" 0.1 " => true"abc" => false"1 a" => false"2e10" => trueNote: It is intended for the problem statement to be ambiguous.
2014-03-02 13:45:34 695
原创 Unique Paths II
Follow up for "Unique Paths":Now consider if some obstacles are added to the grids. How many unique paths would there be?An obstacle and empty space is marked as 1 and 0 respectively in the gri...
2014-03-02 10:28:46 785
原创 Minimum Path Sum.
Given amxngrid filled with non-negative numbers, find a path from top left to bottom right whichminimizesthe sum of all numbers along its path.ExampleExample 1: Input: [[1,3,1],[1,5,1]...
2014-03-02 08:58:44 508
原创 Insert Interval
Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary).You may assume that the intervals were initially sorted according to their start times.Examp...
2014-03-02 07:42:34 531
原创 Gas Station
There are N gas stations along a circular route, where the amount of gas at stationi is gas[i].You have a car with an unlimited gas tank and it costs cost[i] of gas to travel from stationi to it
2014-03-01 15:52:03 508
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人