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.
Keep each item’s bids in a map keyed by user, and answer the highest-bidder query by comparing amount and then user id.