Problem bank
Medium2-D DPNeetCode 150 · #112/150

Longest Common Subsequence

  1. 1
    Learn the pattern

    Grid or two-string problems → table where cell (i,j) answers the prefix subproblem. Fill row by row.

  2. 2
    Watch it run

    See this exact pattern animated step by step before you touch the keyboard.

    Open visualizer
  3. 3
    Solve it

    Solve it on LeetCode, then mark it solved here to keep your streak alive.

Unique PathsBest Time to Buy and Sell Stock with Cooldown