摘要:
原题地址:https://oj.leetcode.com/problems/subsets/题意:枚举所有子集。解题思路:碰到这种问题,一律dfs。代码:class Solution: # @param S, a list of integer # @return a list of l... 阅读全文
posted @ 2014-05-28 15:54
南郭子綦
阅读(6082)
评论(2)
推荐(0)
摘要:
原题地址:https://oj.leetcode.com/problems/combinations/题意:组合求解问题。解题思路:这种求组合的问题,需要使用dfs来解决。代码:class Solution: # @return a list of lists of integers d... 阅读全文
posted @ 2014-05-28 15:24
南郭子綦
阅读(4391)
评论(2)
推荐(0)

浙公网安备 33010602011771号