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.
Related questions
Design a data structure that deduplicates timestamped stream items within one minute.Design a restaurant waitlist API and data structure.Related courses

Course

Course
Course
