摘要: ### LRU缓存 请你设计并实现一个满足 LRU (最近最少使用) 缓存 约束的数据结构。 实现 LRUCache 类: * LRUCache(int capacity) 以 正整数 作为容量 capacity 初始化 LRU 缓存 * int get(int key) 如果关键字 key 存在于 阅读全文
posted @ 2023-05-28 22:20 dayceng 阅读(847) 评论(2) 推荐(1) 编辑