Leetcode 0146. LRU Cache
Posted on Mon 30 January 2023 in Leetcode • Tagged with lru-cache
Question Link : https://leetcode.com/problems/lru-cache/
Difficulty: Medium
Premium: False
Question
Design a data structure that follows the constraints of a Least Recently Used (LRU) cache. Implement the LRUCache class:
LRUCache(int capacity) Initialize the LRU cache with positive size capacity. int get(int key) Return the value of …
Continue reading