Stock Price Fluctuation
Problem: Stock Price Fluctuation
Design a data structure to record the price of a stock at different timestamps and support queries for the current price, maximum price, and minimum price.
Implem...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
