NeetCode #356LC-901MediumStackNC 250
← Back to All Problems#356 · #901 · Online Stock Span(股票价格跨度)
📌 Problem Statement & Constraints
Design a class that collects daily price quotes and returns the span of the stock price for the current day: the number of consecutive days ending today (going backwards) with a price less than or equal to today's. Constraints:
1 <= price <= 10^5; at most 10^4 calls.🔒
Sign In to Unlock Full Solutions for All 973 Problems
Sign in to access step-by-step logic, benchmark Python3 code, complexity breakdown, and offline export!