0

Recursion & Backtracking

Build a candidate, recurse, undo. The brute force that all DP is an optimisation of.

Newinterview weight 7522 problems4 visualisers
18
mastery
Attempts logged
0
Predicted success on the next one
33%
Solved here
0 / 22

What you actually need to hold in your head

  • Choose, explore, un-choose
  • Prune early, that is the whole game
  • Draw the recursion tree before coding
  • For duplicates, sort then skip equal siblings
Comfortable with these first
Next in the path
Tries

Watch it run

Step through the algorithm before you write it.

Patterns in this topic

The trigger phrases are what you are training yourself to notice.

Recursion & Backtracking problems

Ordered by sheet phase, so the early ones are the highest signal.

0 / 22 solved
1
MRecursion & Backtracking
2
MRecursion & Backtracking
3
MRecursion & Backtracking
4
MRecursion & Backtracking
5
MRecursion & Backtracking
6
MRecursion & Backtracking
7
HRecursion & Backtracking
8
MRecursion & Backtracking
9
MRecursion & Backtracking
10
HRecursion & Backtracking
11
MRecursion & Backtracking
12
MRecursion & Backtracking
13
HRecursion & Backtracking
14
MRecursion & Backtracking
15
MRecursion & Backtracking
16
MRecursion & Backtracking
17
HRecursion & Backtracking
18
MRecursion & Backtracking
19
MRecursion & Backtracking
20
MRecursion & Backtracking
21
MRecursion & Backtracking
22
MRecursion & Backtracking