Back to Dashboard

Pro pattern

Upgrade to Pro to access this pattern and all 22 patterns.

Upgrade
PATTERN

Backtracking

Systematically explore all possible solutions by building candidates incrementally, abandoning paths that fail constraints (backtracking), and collecting valid results. Master the choose-explore-unchoose template for subsets, permutations, combinations, and constraint satisfaction.

Learn BacktrackingExplanation, templates & reference

Subsets

easy

Combination Sum

medium

Permutations

medium

Letter Combinations of a Phone Number

medium

Word Search

hard

N-Queens

hard