← Amazon questions

Stock span problem

Filed under Amazon · Also reported at Adobe, Bloomberg, HashedIn, IBM, Juspay, Pine Labs, Samsung

The span of a stock's price for a given day is the maximum number of consecutive days (including the current day) the price has been less than or equal to the price on that day. Given an array of…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.