Exercises/#136 Subsets
#136

Subsets

MediumπŸ“¦ Arrays
80 XP

Problem

Given an integer array of unique elements, return all possible subsets (the power set).

Examples

Input: nums = [1,2,3]
Output: [[],[1],[2],[1,2],[3],[1,3],[2,3],[1,2,3]]
arraybacktrackingbit-manipulation
AI Assistantβ€” powered by AI

Unlock hints progressively β€” start gentle, go deeper only if needed.

πŸ’‘

Level 1: Gentle Nudge

A subtle direction

πŸ—ΊοΈ

Level 2: Approach

The algorithm to use

πŸ”

Level 3: Detailed

Step-by-step guidance

136 / 150

Your Solution

⚑ JavaScript

to save progress and use AI features