二叉搜索树 二叉搜索树满足这样的性质: 每个节点 x 有一个键值。 节点 x 的键值大于等于左子树的任意节点 y 的键值. 节点 x 的键值小于等于右子树的任意节点 z 的键值. 二叉搜索树的表达 struct Node{ int key; Node*parent ; Node*left; Node ...
分类:
其他好文 时间:
2021-05-23 23:08:30
阅读次数:
0
yarn和npm都是包管理工具,yarn比npm好用 特点 速度快、离线模式 离线模式:之前安装过的包会被保存进缓存目录,以后安装就直接从缓存中复制过来 不会出现npm可能出现的问题 npm把依赖安装到node_modules目录的过程具有不确定性,而由于重复的依赖可以合并到一起,从而导致node_ ...
分类:
其他好文 时间:
2021-05-23 23:02:57
阅读次数:
0
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=<device-width>, initial-scale=1.0"> <title>Documen ...
分类:
其他好文 时间:
2021-05-23 23:02:35
阅读次数:
0
//单链表基本操作 1 #include <stdio.h> 2 3 #include <stdlib.h> 4 5 6 typedef struct _NODE 7 { 8 int data; 9 struct _NODE *pNext; 10 }NODE,*PNODE; 11 12 PNODE ...
分类:
编程语言 时间:
2021-05-23 22:56:58
阅读次数:
0
测试ts代码的时候 为了方便 不用tsc去编译 直接用ts-node去联调ts代码 安装typescript npm install -g typescript //$ tsc -v //Version 3.2.2 安装ts-node npm官方地址https://www.npmjs.com/pac ...
分类:
其他好文 时间:
2021-05-04 16:33:48
阅读次数:
0
Linux环境下的gvim编辑器的优势就不多说了。至于我,一个字懒,不想记住gvim的指令,但一想到以后工作还是要用到,还是硬着头皮学吧! 1 gvim基本操作 1.1 基本模式 gvim 有两个基本的模式:Insert 和Normal。Insert模式下光标是竖线,这时键盘的输入为文本。Norma ...
分类:
系统相关 时间:
2021-05-04 16:26:16
阅读次数:
0
# 闭包 def outer(x): print('outer:',x) def inner(): print('inner:', x) return inner # 外部函数return的一定是内部函数的函数名 def a(x): print('a:',x) def b(y): print('b: ...
分类:
编程语言 时间:
2021-05-04 16:12:49
阅读次数:
0
TiUP 是 TiDB 4.0 版本引入的集群运维工具,TiUP cluster 是 TiUP 提供的使用 Golang 编写的集群管理组件,通过 TiUP cluster 组件就可以进行日常的运维工作,包括部署、启动、关闭、销毁、弹性扩缩容、升级 TiDB 集群,以及管理 TiDB 集群参数。 最 ...
分类:
数据库 时间:
2021-05-04 16:12:19
阅读次数:
0
题目链接 维护一个区间最小值同时维护一个区间最小值的减法 #include <bits/stdc++.h> using namespace std; const int N = 100010; int a[N]; int n,k; struct node{ int l,r; int v,add; } ...
分类:
其他好文 时间:
2021-05-04 16:06:56
阅读次数:
0
查看当前系统JupyterLab支持的所有字体 from matplotlib.font_manager import FontManager mpl_fonts = set(f.name for f in FontManager().ttflist) print('all font list ge ...
分类:
其他好文 时间:
2021-05-04 16:05:28
阅读次数:
0