Mental Model
We want to find the best times to buy and sell stocks to make the most money. Different rules change how many times we can trade or if there are fees.
Analogy: Imagine you have a fruit stand and prices change daily. You want to buy fruit cheap and sell it high. Sometimes you can only buy and sell once, sometimes many times, and sometimes you pay a fee each time you sell.
Day: 0 1 2 3 4 5 Price: 100 -> 180 -> 260 -> 310 -> 40 -> 535 Buy? ↑ Sell? ↑ Profit: 0 ? ? ? ? ?
