Back to DSA sheet

Subsets

MediumBacktracking
Open on LeetCodeAmazonGoogleMeta

Return all possible subsets (the power set) of an array of distinct integers, in any order.

Constraints
  • 1 <= nums.length <= 10
  • All numbers are unique
Sheets
Blind 75Grind 75NeetCode 150NeetCode 250
subsets.cpp
Loading editor
Custom input (stdin)
Output

Run your code to see its output.