Skip to content

Latest commit

 

History

History

078. Subsets

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
Given a set of distinct integers, nums, return all possible subsets (the power set). 
给定不重复序列,返回其所有子集。

用dfs算法,同077.combine.
在循环完当前搜索之后在out中加入list即可。