โ† Amazon questions

Design a server data structure with record expiration

Filed under Amazon

The question

Design a data structure for a server to store up to 100 records with two functions: get(k) and put(k, v, x), where k is key, v is value, and x is an expiry time before which the record cannot be removed.

No write-up yet. Related questions below have one.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.