3 ms·
If the max profit involves buying at X and selling at Y, X is always the minimum price that occurs before Y in the timeline.
by pauleastlund 13y ago
If the max profit involves buying at X and selling at Y, X is always the minimum price that occurs before Y in the timeline.