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