摘要: 题目描述 请你设计并实现一个满足 LRU (最近最少使用) 缓存 约束的数据结构。 实现 LRUCache 类: LRUCache(int capacity) 以 正整数 作为容量 capacity 初始化 LRU 缓存 int get(int key) 如果关键字 key 存在于缓存中,则返回关键 阅读全文
posted @ 2025-11-24 20:48 狐狸胡兔 阅读(7) 评论(0) 推荐(0)