Coding Challenge · BEGINNER
Given an array of integers nums that may contain duplicates, return all possible unique subsets of the array that have exactly k elements. Each subset should be sorted in non-decreasing order, and the collection of subsets should be sorted lexicographically. Implement a function uniqueSubsets(nums, k) that returns thes…