Back to all patterns

Backtracking (Permutations)

1 problems • Practice on LeetCode to earn credits

About This Pattern

Master the Backtracking (Permutations) pattern by practicing these problems organized by difficulty.Focus on the Key Signals - these are the indicators that tell you when to use this pattern.

Medium (1)

Permutations

Return all possible permutations of distinct integers.

Key Signals:

All orderingsSwap or track usedBacktrack after recursion