← Questions
Best time to buy and sell stock, every variant
0
I was asked this
No reports yet. Sign in to say where you were asked it.
Given daily stock prices, solve the variants of the maximum-profit problem (for example a single trade, many trades, or at most k trades) with one unified approach.
No official answer yet. Write yours on the right and run it.
Nothing published yet.
Write and test your solution herePython in your browser, the question's tests level by level, saved for you.Sign in to start coding
