上一页 1 2 3 4 5 6 ··· 15 下一页
摘要: 输入一个链表,反转链表后,输出新链表的表头。 第一种用了四个指针,没有下一个简单 这个解发用了三个,比较好 阅读全文
posted @ 2018-11-30 02:38 鹏鹏进阶 阅读(171) 评论(0) 推荐(0) 编辑
摘要: [CareerCup] 2.5 Add Two Numbers 两个数字相加 Suppose the digits are stored in forward order. Repeat the above problem.EXAMPLEInput: (6 -> 1 -> 7) + (2 -> 9 阅读全文
posted @ 2018-11-29 14:25 鹏鹏进阶 阅读(298) 评论(0) 推荐(0) 编辑
摘要: package leadcode; /** * 541. Reverse String II * Easy * 199 * 575 * * * Given a string and an integer k, you need to reverse the first k characters for every 2k characters counting from t... 阅读全文
posted @ 2018-11-28 19:12 鹏鹏进阶 阅读(351) 评论(0) 推荐(0) 编辑
摘要: 557. Reverse Words in a String III 557. Reverse Words in a String III Given a string, you need to reverse the order of characters in each word within 阅读全文
posted @ 2018-11-27 23:50 鹏鹏进阶 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 627. Swap Salary SQL Schema 627. Swap Salary SQL Schema Given a table salary, such as the one below, that has m=male and f=female values. Swap all f a 阅读全文
posted @ 2018-11-26 14:53 鹏鹏进阶 阅读(174) 评论(0) 推荐(0) 编辑
摘要: Linux中CPU与内存性能监测 使用pidstat命令测量程序CPU利用率和Mem占用率 pdf 186 分布式java应用基础与实践 目前的Java应用只有在创建线程和使用Direct ByteBuffer时才会操作JVM堆外的内存JVM,因此在内存 小号面最为值得关注的是JVM内存消耗的情况。 阅读全文
posted @ 2018-11-12 13:30 鹏鹏进阶 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 针对下面程序,设计一个缓存 其中Thread.sleep休眠10s来替代一些耗时任务,有并发获取和写入(写入代码没有提供) 基础要求: 1、使用软引用+ConcurrentHashMap实现 2、软引用+HashMap+ReentrantReadWriteLock实现 阅读全文
posted @ 2018-11-06 16:01 鹏鹏进阶 阅读(210) 评论(0) 推荐(0) 编辑
摘要: [Java并发编程实战]构建一个高效可复用缓存程序(含代码) 阅读全文
posted @ 2018-11-06 15:58 鹏鹏进阶 阅读(248) 评论(0) 推荐(0) 编辑
摘要: Java ConcurrentModificationException异常原因和解决方法 集合迭代时对集合进行修改抛ConcurrentModificationException原因的深究以及解决方案 Iterator使用及ArrayList遍历注意事项 Java ConcurrentModif 阅读全文
posted @ 2018-11-06 15:54 鹏鹏进阶 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 都说新的Arraylist 扩容是(1.5倍+1) 看了1.8的源代码发现不是这么回事 就用下面这段代码在jdk的三个版本运行看了下效果 1 jdk1.6 1.1 运行结果如下: 1.2 部分源代码 2 jdk1.7 2.1 部分源代码 2.2 运行结果 3 jdk1.8 C:\Users\HP>j 阅读全文
posted @ 2018-11-05 18:11 鹏鹏进阶 阅读(8447) 评论(0) 推荐(1) 编辑
上一页 1 2 3 4 5 6 ··· 15 下一页