Skip to content
Tech Interview Prep

Backtracking

Recursive brute-force search with early pruning: build a partial solution, and abandon it the moment it can't possibly work.

  • Overview

    The Backtracking guide: how it works, the trade-offs interviewers ask about, and the mistakes to avoid.

    4 min read

  • Backtracking Interview Q&A

    Interview questions to answer out loud first, then compare with a model answer.

    25 Q&A

  • Backtracking MCQs

    Multiple-choice checks with five options and an explanation for every answer.

    25 MCQs