Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codedecks-in/LeetCode-Solutions
/ 146.LRU-Cache.js
File
146.LRU-Cache.js
JavaScript/146.LRU-Cache.js:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
/**
2
* Design a data structure that follows the constraints of a Least Recently Used (LRU) cache.
3
4
Implement the LRUCache
class
:
Callers
nothing calls this directly
Calls
2
set
Method · 0.80
get
Method · 0.45
Tested by
no test coverage detected