Skip to main content
Subsets | AlgoCracked
AlgoCracked
ProblemsSubsets
Medium76.0% acceptance
Blind75ArrayBacktrackingBit Manipulation

Subsets

Given an array nums of distinct integers, return all possible subsets (the power set). The list of subsets may be in any order ; within each subset keep the elements in their original array order. Input format Input is [nums] , e.g. [[1,2,3]] .

Loading workspace…