1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-01-11 02:58:13 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
leetcode-problemset/leetcode-cn/problem (Chinese)/幂集 [power-set-lcci].html

20 lines
398 B
HTML
Raw Normal View History

2022-03-27 20:38:29 +08:00
<p>幂集。编写一种方法,返回某集合的所有子集。集合中<strong>不包含重复的元素</strong></p>
<p>说明:解集不能包含重复的子集。</p>
<p><strong>示例:</strong></p>
<pre><strong> 输入</strong> nums = [1,2,3]
<strong> 输出</strong>
[
[3],
&nbsp; [1],
&nbsp; [2],
&nbsp; [1,2,3],
&nbsp; [1,3],
&nbsp; [2,3],
&nbsp; [1,2],
&nbsp; []
]
</pre>