Problem 3815 · Medium

Design Auction System

Keep each item’s bids in a map keyed by user, and answer the highest-bidder query by comparing amount and then user id.

Open the interactive visualisation