摘要: TreeMap 可以实现的数据结构 具有平衡搜索二叉树的设计:AVL,SB树,红黑树 常规外设计:跳表时间复杂度都是: Log(N)区别只有常数级别的TreeMap<Integer, String> treeMap = new TreeMap<>();treeMap.put(1,"我是1");tre 阅读全文
posted @ 2023-03-28 23:21 Minde 阅读(28) 评论(0) 推荐(0) 编辑
摘要: int a = 127;int b = 127;System.out.println(a == b); // true -> 基本数据类型按值传递int a1 = 128;int b1 = 128;System.out.println(a1 == b1); // true -> 基本数据类型按值传递 阅读全文
posted @ 2023-03-28 23:01 Minde 阅读(21) 评论(0) 推荐(0) 编辑
摘要: gong公式: T(N) = a * T(N/b) + O(N^d) 其中(abd都是常数) N:入参,输入集合 a:调用子函数的次数 b:调用子函数的规模 d:除子递归外的常数操作,没有为0,如果有N次为1 如果有N^2 次 为2 用法: 只要是递归的子函数的规模是一致的,都可以使用Master公 阅读全文
posted @ 2023-03-28 22:17 Minde 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 1. 数组 arr,起始位置是 L, 终点位置 R 常规写法 int mid = (L + R) / 2; 更安全的写法 int mid = L + ((R - L) >> 1) 2. 如何获得数据的长度 new int[R - L + 1] 3. 步长乘二的安全方式 不安全,可能溢出,因为 int 阅读全文
posted @ 2023-03-20 07:32 Minde 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 1. 最不推荐 LinkedList<Integer> stack1 = new LinkedList<>();stack1.addLast(1);stack1.addLast(2);stack1.addLast(3);while (!stack1.isEmpty()) { System.out.p 阅读全文
posted @ 2023-03-18 18:44 Minde 阅读(54) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-03-09 12:28 Minde 阅读(473) 评论(0) 推荐(0) 编辑
摘要: 1:pom.xml中添加maven依赖: <dependency> <groupId>com.aliyun.oss</groupId> <artifactId>aliyun-sdk-oss</artifactId> <version>2.8.3</version></dependency> 2:下载 阅读全文
posted @ 2019-11-19 22:07 Minde 阅读(4820) 评论(0) 推荐(0) 编辑
摘要: 一丶 新增maven 依赖,一级 build 四丶 FlowBootStap类 阅读全文
posted @ 2019-10-24 20:55 Minde 阅读(1592) 评论(0) 推荐(0) 编辑
摘要: 1丶 新建模型,提示前言中不,报错信息如下 Message: 前言中不允许有内容。 at org.flowable.bpmn.converter.BpmnXMLConverter.convertToBpmnModel(BpmnXMLConverter.java:275) at org.flowabl 阅读全文
posted @ 2019-09-23 14:32 Minde 阅读(1441) 评论(0) 推荐(0) 编辑
摘要: Java并发及高并发 一:cpu多级缓存 1:为什么要使用多集缓存 cpu的处理速度比主存的速度快太多了,cpu大多数情况都是在等待主存的io,为了减少cpu的等待时间,所以加入缓存; 2:如何工作 当cpu要用到主存中的数据进行计算时,先将主存中的数据刷新到缓存,cpu与缓存的数据进行交换,当cp 阅读全文
posted @ 2019-08-20 16:58 Minde 阅读(265) 评论(0) 推荐(0) 编辑