Medium2-D DPNeetCode 150 · #113/150
Best Time to Buy and Sell Stock with Cooldown
- 1Learn the pattern
Grid or two-string problems → table where cell (i,j) answers the prefix subproblem. Fill row by row.
- 2Trace your version
Paste your solution into the workspace and watch every step execute.
Open workspace - 3