Subsets II
Medium
Backtracking (Advanced)
Given an array that may contain duplicates, print all unique subsets. Print each subset in non-decreasing order, list subsets in the order produced by depth-first search over the sorted array (the empty subset is printed as {}).
Constraints
1 <= n <= 10 -10 <= nums[i] <= 10
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.