Implement an LRU Cache (HashMap + Doubly Linked List) and Debug an Existing Implementation
Asked at Anthropic · Coding Questions · Difficulty: Medium
Implement a fixed-capacity **LRU (Least Recently Used) cache** supporting the following operations in amortized O(1) time:
Loading the problem…