LeetCode --- 44. Wildcard Matching Feb 4, 2015

 Tags LeetCode , C++ , 动态规划 , 回溯 , 贪心 , 字符串

题目链接:Multiply StringsImplement wildcard pattern matching with support for ‘?’ and ‘*’.'?' Matches any single character. '*' Matches any sequence of characters (includi... More »

0条评论

LeetCode --- 43. Multiply Strings Feb 3, 2015

 Tags LeetCode , C++ , 数学 , 字符串

题目链接:Multiply StringsGiven two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-... More »

0条评论

即使从头来过,我还是选择遇见你 Feb 2, 2015

 Tags mky

在大雄老去病重躺在床上的时候,他对哆啦a梦说:“哆啦a梦,等我死后,你就回到未来,然后好好生活。”说完就闭上了眼睛。可是哆啦a梦并没有回到未来,而是通过时光机回到了大雄小的时候,然后对他说:“你好,我是哆啦a梦,请多指教。”(转) More »

0条评论

LeetCode --- 42. Trapping Rain Water Feb 2, 2015

 Tags LeetCode , C++ , 数组 , , 双指针

题目链接:Trapping Rain WaterGiven n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after r... More »

0条评论

LeetCode --- 41. First Missing Positive Feb 2, 2015

 Tags LeetCode , C++ , 数组

题目链接:First Missing PositiveGiven an unsorted integer array, find the first missing positive integer.For example,Given [1,2,0] return 3, and [3,4,-1,1] return 2. Your a... More »

0条评论

LeetCode --- 40. Combination Sum II Feb 2, 2015

 Tags LeetCode , C++ , 数组 , 回溯

题目链接:Combination Sum IIGiven a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.Eac... More »

0条评论

LeetCode --- 39. Combination Sum Feb 2, 2015

 Tags LeetCode , C++ , 数组 , 回溯

题目链接:Combination SumGiven a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.The same repe... More »

0条评论

LeetCode --- 38. Count and Say Feb 2, 2015

 Tags LeetCode , C++ , 字符串

题目链接:Count and SayThe count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ... 1 is read off as "one 1" or 11. 11 is read o... More »

0条评论

LeetCode --- 37. Sudoku Solver Feb 1, 2015

 Tags LeetCode , C++ , 回溯 , Hash表

题目链接:Sudoku SolverWrite 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 ... More »

0条评论

LeetCode --- 36. Valid Sudoku Feb 1, 2015

 Tags LeetCode , C++ , Hash表

题目链接:Valid SudokuDetermine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where empty cells are filled with... More »

0条评论