solulubeta
Sign in
Story Problems / Stack
03.03 · Problem

Stock Price Span

Medium Monotonic stack with counts Pro

This problem is part of solulu Pro

For each day, the span of the stock price is the number of consecutive days (going backwards from today, including today) on which the price was less than or equal to today's price. Given the daily prices, return the…

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

Item 43 of 94 · updated 2026-10-12