Search
⌘K

Leetcode 78. Subsets

Return the power set of a unique-element integer array by enumerating all 2^n subsets (typical solutions use backtracking/DFS or bitmask iteration), noting the exponential output is acceptable since n ≤ 10.

Asked at:

Microsoft

Microsoft

Amazon

Amazon

Meta


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Mid February, 2026

Microsoft

Microsoft

Mid-level

Mid November, 2025

Microsoft

Microsoft

Mid-level

Mid September, 2025

Meta

Senior

Comments

Your account is free and you can post anonymously if you choose.