2016年8月8日

摘要: Given a list of numbers that may has duplicate numbers, return all possible subsets class Solution { /** * @param S: A set of numbers. * @return: A li 阅读全文
posted @ 2016-08-08 09:19 codingEskimo 阅读(129) 评论(0) 推荐(0)
摘要: Given a set of distinct integers, return all possible subsets. 这是一道排列与组合的问题, 对于这种题目就是求所有的方案,其中90%是用搜索, 而搜素的题目90%会用到递归。 这类题目的模版 1)把现在结果加进去 2)用for loop做 阅读全文
posted @ 2016-08-08 08:27 codingEskimo 阅读(175) 评论(0) 推荐(0)

导航