CodingNodes / 2-D Dynamic Programming System design

2-D Dynamic Programming

17 animated solutions

Two indices of state — usually prefixes of two strings or a grid. Edit distance, longest common subsequence and grid path sums live here. Every problem below plays as an animated walkthrough with solutions in Python, Java and C++. Companies that ask these most: Swiggy, Geico, Mastercard.