Maximum profit from two stock prices
Filed under Wooqer
The question
Given a list of stock prices at consecutive seconds, select two prices to buy and sell respectively to attain and print the maximum possible profit.
No write-up yet. Related questions below have one.
Related Wooqer questions
Collected from public candidate posts and coding forums. Updated Nov 2026.