问题: 给定一颗BST(二叉搜索树),其中存在两个节点顺序颠倒,请找出他们,并恢复正确次序。 Example 1: Input: root = [1,3,null,null,2] Output: [3,1,null,null,2] Explanation: 3 cannot be a left ch ...
分类:
其他好文 时间:
2020-12-09 12:24:32
阅读次数:
5
1、检查系统是否安装过mysql //检查系统中有无安装过mysql rpm -qa|grep mysql //查询所有mysql 对应的文件夹 whereis mysql find / -name mysql 2、卸载CentOS7系统自带mariadb # 查看系统自带的Mariadb [roo ...
分类:
数据库 时间:
2020-12-07 12:25:31
阅读次数:
9
有人说,90%的程序员都手写不出正确的二分查找 没错,我就是那90% c++的标准库里只提供了binary_search(),lower_bound(),upper_bound()三个函数,缺点就是,只能在数组或者vector这样的线性数据结构上二分 所以就需要整理一下二分的用法和代码 1,bina ...
分类:
其他好文 时间:
2020-12-04 11:17:31
阅读次数:
5
给定一个二叉树,判断它是否是高度平衡的二叉树。 本题中,一棵高度平衡二叉树定义为: 一个二叉树每个节点 的左右两个子树的高度差的绝对值不超过 1 。 来源:力扣(LeetCode) 链接:https://leetcode-cn.com/problems/balanced-binary-tree 著作 ...
分类:
其他好文 时间:
2020-12-03 11:59:09
阅读次数:
6
2020年11月26日11:36:59 powershell在vscode cmake编译,注意 drogon_ctl -v 查看你的库是否连接成功 Libraries: postgresql: no (batch mode: no) mariadb: yes sqlite3: yes openss ...
分类:
数据库 时间:
2020-12-01 12:06:44
阅读次数:
8
link /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NUL ...
分类:
其他好文 时间:
2020-11-27 11:14:59
阅读次数:
5
/** * Definition for a binary tree node. * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * }; */ /** * Return an arr ...
分类:
其他好文 时间:
2020-11-26 14:41:52
阅读次数:
8
1.部署redis nginx mysql python3环境,安装git # 安装应用 yum install -y redis nginx yum install -y mariadb-server mariadb yum install -y python3 yum -y install gi ...
分类:
其他好文 时间:
2020-11-24 12:36:47
阅读次数:
7
一、1、概述:官方网站:MySQL官网:https://www.mysql.com/mariadb官网:https://mariadb.com/官方文档:MySQL:https://dev.mysql.com/doc/Mariadb:https://mariadb.com/kb/en版本演变:MySQL:5.1(centos6.x)——>5.5——>5.6——>5.7MariaD
分类:
数据库 时间:
2020-11-24 12:21:21
阅读次数:
9
一、二进制包下载:地址:https://downloads.mariadb.org/mariadb/10.2.35/选择你要安装的版本;该地址有三种数据格式的文件:Source——源码Binaries——二进制Packages——rpm包(针对centos,Redhat,Ubuntu系列的)下载二进制包:mariadb-10.2.35-linux-x86_64.tar.gz版本//linux表示在
分类:
数据库 时间:
2020-11-24 12:21:05
阅读次数:
11