package
0.0.0-20230809123828-b071cee2968a
Repository: https://github.com/codehanhan/leetcode-go.git
Documentation: pkg.go.dev
# README
面试题 08.04.幂集
1. 题目描述
幂集。编写一种方法,返回某集合的所有子集。集合中 不包含重复的元素 。
说明:解集不能包含重复的子集。
示例:
输入: nums = [1,2,3]
输出:
[
[3],
[1],
[2],
[1,2,3],
[1,3],
[2,3],
[1,2],
[]
]
标签
位运算
数组
回溯
2. 解题
回溯