Blackrock

Interview Question

Associate Interview
Blackrock

Design a cache system that stores key-value pairs with a fixed capacity. When the cache reaches its limit, it should evict the least recently used (LRU) entry. Implement methods to get a value by key, set a new key-value pair, and delete a specific key from the cache using a data structure of your choice.

Unlock the Full Solution

Enter your email to get instant access to the complete solution, explanation, and similar practice problems.

Insights on 100+ quant firms, understand where to apply, and maximize your chances.

Get the official 2025 QB Quant Firm Tier List

Check your email inbox — you should get the interview in 1-2 minutes!