Learn
Practice
Newsletter
Resources
F
Toggle theme
0
F
Toggle theme
0
Toggle menu
← Back to All Animations
Subsets
Example 1: [1,2,3]
Example 2: [0]
Small: [1,2]
Three elements
Custom
nums
=
[1, 2, 3]
Step:
Start: Generate all subsets using backtracking
Variable
Value
nums
[1,2,3]
result
-
Depth
Function Call
1
subsets([1,2,3])
0 / 54
Example 1: [1,2,3]
Example 2: [0]
Small: [1,2]
Three elements
Custom
nums
=
[1, 2, 3]
0 / 54
Step:
Start: Generate all subsets using backtracking
Visualization
Variables