摘要:         0. 前情提要 面试官: 你能手写个LRU缓存吗? 你: LRU是什么东西?(一脸懵逼状) 面试官: LRU全称Least Recently Used(最近最少使用),用来淘汰不常用数据,保留热点数据。 你写了5分钟,然而只写了个get和put方法体,里面逻辑实在不知道咋写。 面试官: 今天的面试先    阅读全文
0. 前情提要 面试官: 你能手写个LRU缓存吗? 你: LRU是什么东西?(一脸懵逼状) 面试官: LRU全称Least Recently Used(最近最少使用),用来淘汰不常用数据,保留热点数据。 你写了5分钟,然而只写了个get和put方法体,里面逻辑实在不知道咋写。 面试官: 今天的面试先    阅读全文
 0. 前情提要 面试官: 你能手写个LRU缓存吗? 你: LRU是什么东西?(一脸懵逼状) 面试官: LRU全称Least Recently Used(最近最少使用),用来淘汰不常用数据,保留热点数据。 你写了5分钟,然而只写了个get和put方法体,里面逻辑实在不知道咋写。 面试官: 今天的面试先    阅读全文
0. 前情提要 面试官: 你能手写个LRU缓存吗? 你: LRU是什么东西?(一脸懵逼状) 面试官: LRU全称Least Recently Used(最近最少使用),用来淘汰不常用数据,保留热点数据。 你写了5分钟,然而只写了个get和put方法体,里面逻辑实在不知道咋写。 面试官: 今天的面试先    阅读全文
posted @ 2022-06-14 23:52
一灯架构
阅读(231)
评论(1)
推荐(1)
        
            
        
        
摘要:         我们经常需要统计一个方法的耗时,一般我们会这样做: public class Test { public static void main(String[] args) throws InterruptedException { long start = System.currentTimeMill    阅读全文
我们经常需要统计一个方法的耗时,一般我们会这样做: public class Test { public static void main(String[] args) throws InterruptedException { long start = System.currentTimeMill    阅读全文
 我们经常需要统计一个方法的耗时,一般我们会这样做: public class Test { public static void main(String[] args) throws InterruptedException { long start = System.currentTimeMill    阅读全文
我们经常需要统计一个方法的耗时,一般我们会这样做: public class Test { public static void main(String[] args) throws InterruptedException { long start = System.currentTimeMill    阅读全文
posted @ 2022-06-14 13:00
一灯架构
阅读(1543)
评论(0)
推荐(1)
        

 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号