Object-Oriented Programming · Atlassian · Medium
Requirements Implement a commodity-price tracker with these current-state operations: Calling upsertCommodityPrice for an existing timestamp replaces its current price. A previously unseen timestamp is added. getMaxCommodityPrice() must report the greatest price currently associated with any timestamp. Then support these checkpoint-aware operations: Every update produces a new checkpoint ID. For a historical lookup, return the price stored for that timestamp at the latest…
Checking your access…