Design a time-to-live data structure over (key, timestamp) pairs.
Unlock detailed company stats for this questionUpgrade
You receive (key, timestamp) pairs in increasing order of timestamp. Design a data structure with time-to-live (TTL) that provides: a) the count of all active keys, b) the count of active keys for a particular key, c) CRUD functions.
Community answers
No answers contributed by the community yet.


