摘要:
Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words. For
阅读全文
posted @ 2016-04-05 18:25
Beserious
阅读(241)
推荐(0)
编辑
摘要:
Given a collection of integers that might contain duplicates, nums, return all possible subsets. Note: Elements in a subset must be in non-descending
阅读全文
posted @ 2016-04-05 18:23
Beserious
阅读(126)
推荐(0)
编辑
摘要:
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
阅读全文
posted @ 2016-04-05 18:22
Beserious
阅读(171)
推荐(0)
编辑
摘要:
Given two integers n and k, return all possible combinations of k numbers out of 1 ... n. For example,If n = 4 and k = 2, a solution is:
阅读全文
posted @ 2016-04-05 18:21
Beserious
阅读(138)
推荐(0)
编辑
摘要:
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 num
阅读全文
posted @ 2016-04-05 16:55
Beserious
阅读(157)
推荐(0)
编辑