Mental Model
We want to find the best times to buy and sell stocks to maximize profit by looking at price changes over days.
Analogy: Imagine you are a fruit seller buying fruits at low prices and selling them later at higher prices to earn money, but you can only hold one fruit at a time or multiple depending on the variant.
Day: 0 1 2 3 4 5 Price: 7 -> 1 -> 5 -> 3 -> 6 -> 4 Buy? ↑ Sell? ↑
