ExecutorService是Java提供的用于管理线程池的类。该类的两个作用:控制线程数量和重用线程 常用的线程池实现 Executors.newCacheThreadPool()创建一个普通的池子,当使用时首先会查看池子中是否有空闲线程,若没有则新建 Executors.newFixedThr Read More
posted @ 2021-08-26 16:11
K峰
Views(83)
Comments(1)
Diggs(0)
微服务架构 微服务架构就是将单体的应用程序分成多个应用程序,这多个应用程序就是微服务,而且各个服务可以使用不同的编程语言、不同的数据库可以极大的降低耦合性。 SpringCloud使用得意义 利用SpringBoot开发的便利性,简化了分布式系统基础设施的开发,服务发现、配置中心、负载均衡、断路器、 Read More
posted @ 2021-08-26 15:57
K峰
Views(47)
Comments(0)
Diggs(0)
有序升序环链表,找到最小头 Node newhead = null; Node slow = head; Node fast = head.next; while(fast.val >= slow.val){ slow = slow.next; fast = fast.next; if(fast = Read More
posted @ 2021-08-26 15:10
K峰
Views(85)
Comments(0)
Diggs(0)
一歪脑袋是二叉树,哈哈,其实我没发现,但是也是用递归,并不优雅的递归,后来受大佬的启发 /* // Definition for a Node. class Node { public int val; public Node prev; public Node next; public Node Read More
posted @ 2021-08-26 14:18
K峰
Views(127)
Comments(0)
Diggs(0)
偶数找偏左,奇数找中点 ListNode slow = head; ListNode fast = head.next; while(fast != null && fast.next != null){ slow = slow.next; fast = fast.next.next; } 偶数找偏 Read More
posted @ 2021-08-26 09:20
K峰
Views(68)
Comments(0)
Diggs(0)

浙公网安备 33010602011771号