2022年3月4日

LRU系列(146. LRU 缓存)——链表

摘要: """请你设计并实现一个满足LRU (最近最少使用) 缓存 约束的数据结构。实现 LRUCache 类:LRUCache(int capacity) 以 正整数 作为容量capacity 初始化 LRU 缓存int get(int key) 如果关键字 key 存在于缓存中,则返回关键字的值,否则返 阅读全文

posted @ 2022-03-04 16:38 random_boy 阅读(99) 评论(0) 推荐(0)

导航