← Bloomberg questions
CodingReported in a candidate post, Jul 2022

Generate all unique subsets, then with duplicates in input

Filed under Bloomberg

Given an array of integers, return all possible subsets (the power set) with no duplicate subsets. In the first version elements are distinct; in the follow-up the array may contain duplicates, and…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Bloomberg questions

Collected from public candidate posts and coding forums. Updated Nov 2026.