How it works
Base case and recurrence
Define a clear base case and how each call reduces the problem toward it.
Backtracking template
Choose, explore, and un-choose, pruning branches that cannot lead to a valid solution.
When to use it
Reach for it on permutations, combinations, subsets, and constraint problems like N-Queens.