Skip to main content
All Questions

Implement an LRU cache with a pluggable LRU/LFU eviction strategy.

Unlock detailed company stats for this questionUpgrade

It was not a direct LRU Cache problem. I had to explain the Strategy Pattern, create multiple classes and an interface, and build an Evictor class supporting both LRU and LFU eviction, all in 30 minutes.

Format · 30 minutes inside a 60-minute technical screen with a Principal SDE, after 30 minutes of Leadership Principles.

Community answers

No answers contributed by the community yet.

Related courses

Course

Software Engineering Interview Prep

Land your dream software engineering role at Google, Amazon, Microsoft, Meta, Apple, and other top companies. Learn from mock interviews, frameworks, and advice from senior candidates—practice data structures, algorithms, system design, people management, behavioral interviews, and more.

Course

System Design Interviews

Learn how to answer the latest system design questions across product, infrastructure, and AI domains. Features in-depth video examples, written breakdowns, and helpful reference patterns. Watch senior engineers and managers answer these questions in mock interview videos.