摘要: 题目链接 代码 class LRUCache { // 使用LinkedHashMap HashMap<Integer, Integer> map; // 因为LinkedHashMap是继承自HashMap的,初始化容量使用的是HashMap的,所以 24 = 32(当申请24容量的时候,实际给的 阅读全文
posted @ 2020-09-22 08:57 Bears9 阅读(134) 评论(0) 推荐(0) 编辑