Backtracking
QihaoD
留个言吧,会很开心的,哈哈
展开
-
[leetCode] Subsets II
Given a collection of integers that might contain duplicates, nums, return all possible subsets.Note:Elements in a subset must be in non-descending order.The solution set must not contain du原创 2015-05-08 23:55:44 · 363 阅读 · 0 评论 -
[leetCode] Word Search (new start. Let's go this)
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原创 2015-05-05 05:02:58 · 324 阅读 · 0 评论 -
[leetCode] Combination Sum II
Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.Each number in C may only be used once in the combina原创 2015-05-20 23:52:57 · 315 阅读 · 0 评论 -
[leetCode] Combination Sum
Given 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 repeated number may be chosen from C unlimited num原创 2015-05-20 23:32:20 · 352 阅读 · 0 评论 -
[leetCode] Subsets
Given a set of distinct integers, nums, return all possible subsets.Note:Elements in a subset must be in non-descending order.The solution set must not contain duplicate subsets.For原创 2015-05-07 23:40:42 · 455 阅读 · 0 评论 -
[leetCode] Combination Sum III
Find all possible combinations of k numbers that add up to a number n, given that only numbers from 1 to 9 can be used and each combination should be a unique set of numbers.Ensure that numbers wi原创 2015-06-18 22:25:20 · 283 阅读 · 0 评论