← All problems
Medium · Stack

Online Stock Span

For each price compute the length of its trailing non-greater price run.

Full problem and submission ↗
main.js

Console

Ready