mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-13 19:31:42 +08:00
add leetcode problem-cn part2
This commit is contained in:
19
算法题(国内版)/problem (Chinese)/幂集 [power-set-lcci].html
Normal file
19
算法题(国内版)/problem (Chinese)/幂集 [power-set-lcci].html
Normal file
@@ -0,0 +1,19 @@
|
||||
<p>幂集。编写一种方法,返回某集合的所有子集。集合中<strong>不包含重复的元素</strong>。</p>
|
||||
|
||||
<p>说明:解集不能包含重复的子集。</p>
|
||||
|
||||
<p><strong>示例:</strong></p>
|
||||
|
||||
<pre><strong> 输入</strong>: nums = [1,2,3]
|
||||
<strong> 输出</strong>:
|
||||
[
|
||||
[3],
|
||||
[1],
|
||||
[2],
|
||||
[1,2,3],
|
||||
[1,3],
|
||||
[2,3],
|
||||
[1,2],
|
||||
[]
|
||||
]
|
||||
</pre>
|
Reference in New Issue
Block a user