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

Best Time to Buy and Sell Stock with Cooldown

  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
    Trace your version

    Paste your solution into the workspace and watch every step execute.

    Open workspace
  3. 3
    Solve it

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

Longest Common SubsequenceCoin Change II