摘要: 题目来源 LeetCode-146 题目描述 实现 LRUCache 类: LRUCache(int capacity) 以 正整数 作为容量 capacity 初始化 LRU 缓存 int get(int key) 如果关键字 key 存在于缓存中,则返回关键字的值,否则返回 -1 。 void 阅读全文
posted @ 2021-02-21 20:20 Garrett_Wale 阅读(66) 评论(0) 推荐(0) 编辑