The simplest 2D DP problem — it establishes the pattern of filling a table where each cell depends on its top and left neighbors.
Enable JavaScript for the full StreamPrep guide.