Find the maximum total profit from a stock's daily prices when you may buy and sell as many times as you like but hold at most one share at a time, selling before you buy again.
Loading content...