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

20 lines
398 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<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>