摘要: 一、leetcode 题目 运用你所掌握的数据结构,设计和实现一个 LRU (最近最少使用) 缓存机制 。 实现 LRUCache 类: LRUCache(int capacity) 以正整数作为容量 capacity 初始化 LRU 缓存 int get(int key) 如果关键字 key 存在 阅读全文
posted @ 2020-11-17 11:27 Life_Goes_On 阅读(313) 评论(0) 推荐(0) 编辑