Skip to content
Tech Interview Prep

2-D Dynamic Programming

DP where the subproblem needs two indices: grid paths, two-string comparisons, and knapsack-style capacity constraints.

  • Overview

    The 2-D Dynamic Programming guide: how it works, the trade-offs interviewers ask about, and the mistakes to avoid.

    4 min read

  • 2-D Dynamic Programming Interview Q&A

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

    25 Q&A

  • 2-D Dynamic Programming MCQs

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

    25 MCQs