Available question text
Implement an LRU cache with a `put(byte[] photo)` method that persists a photo to memory and returns a generated unique ID (UUID), and a `get(String id)` method that retrieves the photo by ID. The LRU eviction policy should be based on the total size of the stored photos in bytes, not the number of entries in the cache.
Related questions
Continue with questions that share topics or the same question type.
- Implement a crash-resilient LRU cache
Coding · Caching · Data Structure Design · Database Internals
- Implement an LRU cache with O(1) operations
Coding
- Implement an LRU cache with serialization and evolving constraints.
Coding
- Implement an LRU Cache with very strict complexity requirements in c++. Allowed to use stl containers.
Coding
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
Microsoft
LRU Cache with Photo Storage
Reported Apr 6, 2026 · 1 source report
SENIOR
Source snapshot: Nov 12, 2026
View source