Given an array of distinct elements such as [A, B, C], print or return all of its subsets (the power set), including the empty subset and the full array. The order of the subsets does not matter.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.