DSA

Stock trading DP: a state machine over days

Turn the facts that change your legal moves into states, and update each state's best balance or count from the previous day.

3,668 words · 17 min read

Difficulty: how hard each problem is if its topic is new to you.

Core 5

Additional practice 1