Best time to buy and sell stock: one trade, then two
Given a stock's daily prices, return the most profit you can make:
- With one buy and one later sell.
- With at most two non-overlapping trades.
No answer yet. Write the first one; the best answer gets endorsed.
