medium10 pts · first answer countsstacks-and-queues
Stock span problem
The stock span on a day is the number of days in a row, ending today, with price at or below today's. For prices [100, 80, 60, 70, 60, 75, 85], what is the span on the day the price is 75?
Discussion 0
Join free to post in the discussion.
Related questions
- Order rule of a stackBackend Developer
- Order rule of a queueBackend Developer
- Trace stack push and popBackend Developer
- Trace queue operationsBackend Developer
- Using a JavaScript array as a stackBackend Developer
- Cost of Array.shift in a queueBackend Developer
- Cause of a stack overflow errorBackend Developer
- Serving patients by severityBackend Developer