Available question text
Design a data structure that maintains timestamp→price records which may arrive out-of-order and be corrected later, supporting efficient update(timestamp, price) and queries for the current price (price at the latest timestamp) as well as the global maximum and minimum prices. The key challenge is handling corrections and duplicates while keeping current/max/min queries fast.
Related questions
Continue with questions that share topics or the same question type.
- Find the Widest Interval of Stock Price Loss
Coding
- Average Selling Price
Coding
- Best Time to Buy and Sell Stock
Coding · Array · Dynamic Programming
- Best Time to Buy and Sell Stock II
Coding · Array · Dynamic Programming · Greedy
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
Snapchat
Leetcode 2034. Stock Price Fluctuation
Reported Dec 2, 2025 · 1 source report
MID_LEVEL
Source snapshot: Nov 12, 2026
View source