1D Dynamic Programming Problems: Classic Patterns
Learn to solve common 1D dynamic programming problems including climbing stairs, house robber, and coin change with optimized space solutions.
Learn to solve common 1D dynamic programming problems including climbing stairs, house robber, and coin change with optimized space solutions.
Master 2D DP problems with two state variables for string manipulation, matrix chain multiplication, and optimal game strategies.
Compare arrays and linked lists by access, edits, memory use, and cache behavior, with one operation matrix and a reproducible benchmark for real workloads.
Learn Python 3 list indexing, 2D matrix traversal, and a sliding-window pattern with runnable exercises for learners who know loops and functions.
Learn how DFS low-link values identify articulation points and bridges in undirected graphs, including root cases and disconnected components.
Learn AVL insertions and deletions through height and balance-factor traces, then use a compact Python implementation and compare tree choices.
Understand B-trees and B+ trees for disk-based storage, database indexing, and efficient range queries with O(log n) operations.
Learn the Bellman-Ford algorithm for single-source shortest paths including negative edge weights and negative cycle detection.
Master asymptotic analysis, Big O/Theta/Omega notation, and how to analyze time and space complexity of algorithms systematically.
Choose binary search for monotone predicates and ternary search for unimodal objectives. Learn lower bounds, rotated-array search, and termination invariants.