Problems / Backtracking / Permutations
#73 Medium Time O(n!) Space O(n) Animated

Permutations

Return all possible permutations of a distinct integer array.

LeetCode ↗
Approach: DFS (Backtracking)
Click play to start
Step 0 / 0
Press play to start the visualization.

Steps