设计并实现最近最久未使用(Least Recently Used)缓存。
题目描述:
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the follow...
文章邴越
2016-05-05
3151浏览量
LeetCode之LRU Cache 最近最少使用算法 缓存设计
题目描述:
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set.
get(key) -...