Find the Widest Interval of Stock Price Loss
Given an array of stock prices, find the size of the widest interval over which the stock has lost value. Lost value is defined as the initial value of the interval being larger than the final value of the interval.
Asked at:
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Early September, 2024
Mid-level
Given an array of stock prices, find the size of the widest interval over which the stock has lost value. Lost value is defined as the initial value of the interval being larger than the final value of the interval.
Hello Interview Premium
Your account is free and you can post anonymously if you choose.