</>OfferRetriever
DashboardDiscuss
NEW

July 4th Sale

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

$10.42$6.25

10

:

09

:

27

:

01

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: ...