← 返回 atlassian 的题目列表Find Maximum Stock Price
类型:online_judge
Given a history of stock price fluctuations, output the maximum stock price at any point in time. Implement a method to update the maximum value when new prices are input, supporting efficient queries.
Example
Input
add_price 100
max_price