Skip to interview prep
Apexed

75. Implement a fixed-capacity LRU cache with get and put. How would you handle updates and prove that eviction stays correct?

Software engineering75 / 100

MediumData structures & algorithms

TechnicalAmazon · Topic report
Sources & context
  • Glassdoor: Amazon SDE II candidate report · Report published

    An anonymous candidate report mentions LRU caching plus deadline and incomplete-information behavioral topics. Independently unverified; publication date, not interview date. Related original practice, not the reported wording.

This is ungraded practice. Run your solution and compare it with the model answer. Your drafts are saved in this browser.

Tab indents · Ctrl/⌘ + Enter runs · Esc then Tab leaves the editor

Press Run to see your program’s output.

Implement a fixed-capacity LRU cache with get and put. How would you handle updates and prove that eviction stays correct — Software engineering interview quest