AlgoViz

Backtracking

medium 20 min

Backtracking builds an answer one choice at a time and abandons a partial answer the moment it cannot work.

Check yourself

One question at a time. Each answer explains why.

Question 1 of 10

Score 0
conceptual

What is the core principle of backtracking?

Pick an answer to see why.

Flashcards

Say your answer, then reveal it.

Card 1 of 12

Recall

What is backtracking in one sentence?

Say your answer, then reveal it.

These cards come back in Today, just before you would forget them.