You are given an integer array prices representing the daily price of a stock.
A smooth descent period of a stock consists of one or more contiguous days such that the price on each day is lower than the price on the preceding day by exactly prices[i] - prices[i + 1]
Return the total number of smooth descent periods.
Note: A period consisting of a single day is also considered a smooth descent period.
Constraints:
prices.length
prices[i]
You are given an integer array prices representing the daily price of a stock.
A smooth descent period of a stock consists of one or more contiguous days such that the price on each day is lower than the price on the preceding day by exactly prices[i] - prices[i + 1]
Return the total number of smooth descent periods.
Note: A period consisting of a single day is also considered a smooth descent period.
Constraints:
prices.length
prices[i]