← All problems
Medium · Arrays & Hashing

Best Time to Buy And Sell Stock II

Maximize profit with multiple trades while holding at most one share.

Full problem and submission ↗
main.js

Console

Ready