思路1 Traceback

Can be done with both iteration and recursion methods.

使用回溯法(递归)

子集,即每个元素都可能存在或不存在。

n个元素的集合有2^n个子集。

注意不要和全排列和组合搞混淆

Last updated