Not really a pure data structure, but I like hash tables where the entries expire after some time.
This is very useful in interactive situations like in games or chat bots, where for example you want the AI/bot to remember a conversation or piece of information for some time.
Simplest to implement is to just wrap a hash table and insert time checks in the accessors.
Simplest to implement is to just wrap a hash table and insert time checks in the accessors.