LeetCode MEDIUM 78 Subsets Summary
Generated by Codex with GPT-5
Quick facts
- Difficulty:
MEDIUM - Problem: Subsets
- Main tags:
Array,Backtracking,Bit Manipulation
What the problem is really asking
Given an array nums of distinct integers, return every possible subset of those numbers.
A subset can contain none of the numbers, some of the numbers, or all of the numbers. The empty subset [] is valid, and the full array is valid too. Because the input numbers are distinct, there is no duplicate-handling problem in the base version.