Available question text
Count all contiguous subarrays (periods) where each day's price is exactly one less than the previous day (single-day periods count). This is equivalent to finding maximal runs of consecutive -1 differences and summing the number of subarrays contributed by each run.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 2110. Number of Smooth Descent Periods of a Stock
Interview date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source