Subsets II
Given a collection of integers that might contain duplicates, nums, return all possible subsets (the power set).
(列举所有子集)
Note: The solution set must not contain duplicate subsets.
Example:
1. 回溯法 / DFS
1 | class Solution: |
Given a collection of integers that might contain duplicates, nums, return all possible subsets (the power set).
(列举所有子集)
Note: The solution set must not contain duplicate subsets.
Example:
1 | class Solution: |