mirror of
				https://gitee.com/coder-xiaomo/leetcode-problemset
				synced 2025-11-04 19:53:12 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			398 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			398 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
<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>
 |