Halloween SalePremium questions, over 30% offUnlock all premium questions for over 30% off
Running Commodity Price
Medium
You are given a stream of data points consisting of <timestamp, commodityPrice>. You need to design a data structure that supports upserting commodity prices and retrieving the current maximum commodity price at any point in time.
The timestamps in the stream can be out of order, or there can be duplicate timestamps. If an entry for a timestamp already exists, update the commodity price at that timestamp. ...
Asked at:Atlassian
More Atlassian interview questions
- Design Rate Limitermedium
- Middleware Routermedium
- Door Swipesmedium
- Word Wrapeasy
- Tennis Court Bookingshard
- Agent Votemedium
- Customer Service Rating Systemmedium
- Build Resource Transition Grapheasy
OfferRetriever
Master technical interviews with real questions from top companies. Build your confidence and career.
LEGAL
© 2026 Purple Business Holdings LLC. All rights reserved. See Terms of Service.