Cache with a snapshot printer

0
Remix

Build a cache much like an LRU cache, with one extra function, snapshot(cache), that prints the cache's current contents in order. A second part builds on it with a compressed input to handle.

HebbiaCodingLast asked Feb 2026
No answer yet. Write the first one; the best answer gets endorsed.