Abekus — AI learning and job matching platform logo

DSA — Dynamic Programming & Graphs

  • 160 lessons
  • About 18 hours
  • Self-paced
  • Certificate on completion
0%Complete
Guided Mode

Start with lesson 1

160 lessons. The first one is free, no signup needed.

🗺️ Your learning path
DP Signals from Problem Structure
Graph Modeling Signals
DP and Graph Boundary

What you'll learn

  • Recognise DP problems from non-DP problems using the three trigger conditions — overlapping subproblems, optimal substructure, and a tractable state space.
  • Define DP states correctly — the single highest-leverage step in solving any DP problem — and write the recurrence that connects state transitions.
  • Convert between top-down memoisation and bottom-up tabulation, and apply space optimisation to drop O(n²) DP tables to O(n) where transitions allow.
  • Solve 1D DP problems including linear DP, binary-decision DP (take-or-skip), and the classic problems (Fibonacci, climb stairs, house robber, coin change, maximum subarray).
  • Solve 2D DP problems — grid traversal, two-sequence pairs, and the space-optimised one-row variants — that show up in interviews and contests.
  • Apply the Knapsack family — 0/1, unbounded, and variants including partition equal subset sum, target sum, rod cutting, and coin change ways.
  • Solve sequence DP problems — LIS, LCS, and Edit Distance — and their families, including reconstructions and constrained variants.
  • Apply Interval DP (matrix chain multiplication, palindrome partitioning), Tree DP (subtree aggregations), and Bitmask DP (TSP-style state enumeration).
  • Compute shortest paths with Dijkstra, Bellman-Ford, and Floyd-Warshall; find MSTs with Prim and Kruskal; perform topological sort and DAG algorithms.
  • Apply Union-Find with path compression and union by rank; recognise Strongly Connected Components, bipartite checks, articulation points, and bridges.

About this course

Dynamic programming and graph algorithms are the topics where most interview candidates plateau. The patterns are harder, the state spaces are larger, and the recognition signals are subtler than two-pointer or sliding window. They're also the topics where FAANG interviews most often separate strong candidates from average ones. This course gives you 1,500+ practice MCQs covering the full span of DP and graph algorithms — state definition, 1D and 2D DP, the Knapsack family, sequence DP, interval/tree/bitmask DP, shortest paths, MSTs, topological sort, Union-Find, and advanced graph algorithms — all with instant explanations on every wrong answer.

The course is Part 3 of Abekus's four-course DSA Mastery series. Take DSA: Data Structures Fundamentals and DSA — Algorithms & Core Patterns first — the patterns here build directly on recursion, BFS/DFS, and the underlying data structures. Either way, you practice one MCQ at a time, see exactly why your answer was wrong (or why the right answer worked), and move on. Twelve topics, three subtopics each, every question vetted and mapped — that's the structure.

Learning path

DSA Mastery

A complete Data Structures & Algorithms track on Abekus — from data-structure fundamentals through algorithmic patterns, dynamic programming and graphs, and interview-mastery mixed problems. Free MCQ practice with instant explanations, designed as a progression: each course builds on the one before

4 courses·6,423 practice MCQs·76h of content

Frequently asked questions