</>OfferRetriever
DashboardDiscuss
NEW

Spring Hire Sale

Limited Time Deal: Unlock all premium questions for over 30% off

$10.42$7.08

08

:

03

:

09

:

37

Get this deal
Back to Dashboard

Item Price Tracker

Medium

Design a class that tracks the price history of a single product. Price records are keyed by timestamp and can be updated at any time. The tracker must always be able to report the current, minimum, and maximum prices in O(log N) time or better.

Implement the ItemPriceTracker class: ...