Refactor an LRU Cache into a Pluggable Eviction-Policy Cache

Problem: Refactor an LRU Cache into a Pluggable Eviction-Policy Cache

You are given a local in-memory cache implementation that only supports LRU (Least Recently Used) eviction. Refactor the d...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: