Given an array of integers, generate and print all possible subsets (the power set), and derive the mathematical formula for the total number of subsets for a set of N elements.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.