1.搭建mybatis源码环境 首先从github上下载源码,地址:https://github.com/mybatis/mybatis-3/tree/mybatis-3.5.4 把下载好的源码引入到 idea 开发工具中,大家要注意,把源码的 pom.xml 配置文件如下坐 标的值从 true 修 ...
分类:
其他好文 时间:
2020-06-05 21:25:15
阅读次数:
74
给定一个二叉树,返回其节点值自底向上的层次遍历。 (即按从叶子节点所在层到根节点所在的层,逐层从左向右遍历) 例如:给定二叉树 [3,9,20,null,null,15,7], 3 / \ 9 20 / \ 15 7返回其自底向上的层次遍历为: [ [15,7], [9,20], [3]] /** ...
分类:
其他好文 时间:
2020-06-05 21:17:52
阅读次数:
78
数组、链表、树存储方式分析 数组 数组存储方式的分析 **优点:**通过下标方式访问元素,速度快。对于有序数组,还可使用二分查找提高检索速度。 **缺点:**如果要检索具体某个值,或者插入值(按一定顺序)会整体移动,效率较低 每次在底层都需要创建新是数组要将原来的数据拷贝到数组,并插入新的数据 1. ...
分类:
编程语言 时间:
2020-06-05 21:16:27
阅读次数:
58
参考 https://github.com/apache/rocketmq/tree/master/docs/cn RocketMQ主要由 Producer、Broker、Consumer 三部分组成,其中Producer 负责生产消息,Consumer 负责消费消息,Broker 负责存储消息。B ...
分类:
其他好文 时间:
2020-06-05 15:32:59
阅读次数:
81
touch mkdir rm mv cp cd pwd ls tree find ...
分类:
系统相关 时间:
2020-06-04 15:44:14
阅读次数:
67
给你$n$个数,对于$i∈[1,m]$,求出有多少棵不同的二叉树,满足权值都取自这$n$个数中,且权值和恰为$i$。 ...
分类:
其他好文 时间:
2020-06-04 13:50:41
阅读次数:
53
题目如下: Given a binary tree root, a node X in the tree is named good if in the path from root to X there are no nodes with a value greater than X. Retur ...
分类:
其他好文 时间:
2020-06-04 10:33:57
阅读次数:
77
from xml.etree.ElementTree import ElementTreeimport cv2import osdef read_xml(in_path): tree = ElementTree() tree.parse(in_path) return treedef write_x ...
分类:
移动开发 时间:
2020-06-04 01:36:12
阅读次数:
68
比较简单的是单列索引(b+tree)。遇到多条件查询时,不可避免会使用到多列索引。联合索引又叫复合索引。 b+tree结构如下:每一个磁盘块在mysql中是一个页,页大小是固定的,mysql innodb的默认的页大小是16k,每个索引会分配在页上的数量是由字段的大小决定。当字段值的长度越长,每一页 ...
分类:
数据库 时间:
2020-06-03 21:55:41
阅读次数:
92
决策树 https://www.cnblogs.com/molieren/articles/10664954.html http://scikit-learn.org/stable/modules/tree.html ...
分类:
其他好文 时间:
2020-06-02 23:04:22
阅读次数:
97