hardJavaScript

Implement LRU Cache

Design and implement an LRU (Least Recently Used) cache.
Ensure function signatures match starter code to run test cases.
index.js
Loading...

Test Case #1

Input: put(1,1);put(2,2);get(1)

Expected: 1

Solve Implement LRU Cache | Algorithmic Interview Drill