BTI Beyond The Interviews

DSA · 9 sections

Dynamic Programming

Memoization, tabulation, and the patterns behind every DP interview problem.

Premium · preview 104 cards Updated 24 Oct 2026
Free to preview. The first 3 cards and the full outline are below — the rest of this sheet is part of the DSA & Data Structures bundle.

What's inside

Preview — first 3 of 104 cards

What is dynamic programming?

Solve problems by breaking into overlapping subproblems and combining optimal solutions. Requires optimal substructure and overlapping subproblems.

opt(i) = combine(opt(subproblems))

Optimal substructure?

An optimal solution can be built from optimal solutions of subproblems. If subproblems overlap, DP beats divide-and-conquer.

opt(i) = f(opt(sub))

Overlapping subproblems?

Same subproblems recur exponentially in naive recursion. DP computes each once and reuses.

Fib: F(n)=F(n-1)+F(n-2)

101 more cards in this sheet

Unlock the DSA & Data Structures bundle — ₹399

One-time payment. Unlocks this sheet and 8 other sheets in the bundle, plus a typeset PDF of each.

Unlock the bundle See all bundles

Or get all 76 sheets for ₹999 — one payment, every future sheet included.