solulubeta
Sign in
DSA Basics / Building up
02.29 · Problem

One Buy, One Sell

Medium Running minimum · best so far Pro

This problem is part of solulu Pro

A student tracks a share price for several days and is allowed exactly one buy and, on a later day, one sell. He wants to know the biggest profit he could have made.

Lifetime ₹2,000 ₹1,000 · Beta offer
Mark this problem as solved when you are finished.

Item 59 of 90 · updated 2026-10-12