← Recursion & Backtracking Quiz: all 7 questions
Recursion & Backtracking Quiz · Question 4 of 7
What are the three steps of the backtracking template?
What are the three steps of the backtracking template?
- A.Choose, explore, unchoose
- B.Sort, search, return
- C.Divide, conquer, merge
- D.Push, pop, peek
Answer & explanation
Correct answer: Choose, explore, unchoose
Add a choice, recurse, then undo it so the next option starts clean.
Can you get the rest right without peeking?
Take the timed Recursion & Backtracking Quiz quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →