← 返回 meta 的题目列表Stock Price History System
类型:online_judge
Design a system to record price changes of multiple stock symbols and return the stock prices for each symbol in chronological order. The system should support the following APIs: record a new stock price, retrieve the list of stock prices at a certain time, and retrieve the complete historical price list of a specific stock symbol. No extra memory is allowed.
Example
Input
AAPL 1 150
AAPL 2 155
AAPL 3 160
AAPL 2
AAPL