← All problems
Easy · Sliding Window

Best Time to Buy And Sell Stock

Maximize profit from one buy followed by one sale.

Full problem and submission ↗
main.js

Console

Ready