
dfs
likecool21
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
LeetCode刷题笔录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-08-05 08:21:53 · 635 阅读 · 0 评论 -
LeetCode刷题笔录Letter Combinations of a Phone Number
Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephone buttons) is given below.Input:Digit st原创 2014-08-05 04:45:57 · 1104 阅读 · 0 评论 -
LeetCode刷题笔录Word Search
Given a 2D board and a word, find if the word exists in the grid.The word can be constructed from letters of sequentially adjacent cell, where "adjacent" cells are those horizontally or vertically原创 2014-08-13 08:15:06 · 596 阅读 · 0 评论 -
LeetCode刷题笔录Permutation Sequence
The set [1,2,3,…,n] contains a total of n! unique permutations.By listing and labeling all of the permutations in order,We get the following sequence (ie, for n = 3):"123""132""213""231""3原创 2014-10-29 08:37:23 · 861 阅读 · 0 评论 -
LeetCode刷题笔录Palindrome Partitioning
Given a string s, partition s such that every substring of the partition is a palindrome.Return all possible palindrome partitioning of s.For example, given s = "aab",Return [ ["aa","原创 2014-10-04 00:45:14 · 619 阅读 · 0 评论 -
LeetCode刷题笔录Permutations II
Given a collection of numbers that might contain duplicates, return all possible unique permutations.For example,[1,1,2] have the following unique permutations:[1,1,2], [1,2,1], and [2,1原创 2014-10-15 06:02:49 · 598 阅读 · 0 评论 -
LeetCode刷题笔录Subsets
自己总是写不出递归的方法,只能用f原创 2014-07-21 08:10:50 · 1085 阅读 · 0 评论