思路分析 其实就是递归判断左树和右树,但是一些判断条件需要仔细思考下. cpp /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * ...
分类:
其他好文 时间:
2021-01-26 11:49:40
阅读次数:
0
Power Strings Description Given two strings a and b we define a*b to be their concatenation. For example, if a = "abc" and b = "def" then a*b = "abcde ...
分类:
其他好文 时间:
2021-01-26 11:47:12
阅读次数:
0
删除数据库时提示:message:Database DBname is not empty. One or more tables exist. ##解决方案1: 先删除数据库中的所有表,再删除数据库 ##解决方案2: 强制删除 drop database db_hive cascade; ...
分类:
数据库 时间:
2021-01-26 11:44:00
阅读次数:
0
cube.js 使用node vm 进行schema 的编译,提供了灵活的编译schema 的能力 cube.js 提供的全局对象 cube(), context() asyncModule() import && export 的处理 数据schema 定义的es6 文件,将会被编译为nodejs ...
分类:
Web程序 时间:
2021-01-26 11:42:53
阅读次数:
0
下载zsh sudo apt-get install zsh sudo apt-get install git 下载oh-my-zsh 因为zsh配置起来太麻烦了,直接安装oh-my-zsh即可,前往oh-my-zsh官网: https://ohmyz.sh 使用命令: $ sh -c "$(cur ...
分类:
系统相关 时间:
2021-01-26 11:42:41
阅读次数:
0
mysql5.5的几个新参数 分类: Mysql/postgreSQL 2013-01-04 12:04:14 新参数项 旧参数 参数说明 innodb_read_io_threads innodb_write_io_threads innodb_file_io_threads(默认为4) 需要开启 ...
分类:
数据库 时间:
2021-01-25 11:37:32
阅读次数:
0
Problem LeetCode Given the root of a binary tree, return the sum of every tree node's tilt. The tilt of a tree node is the absolute difference between ...
分类:
编程语言 时间:
2021-01-25 11:29:21
阅读次数:
0
Stream主要用于序列化地数据处理(read or write input into output sequentially),比如文件读写,网络数据传输, 或任何端到端的数据交换。Stream在处理数据的时候,与传统方式有所不同,传统方式是把数据作为一个整体进行处理,而stream则是把数据分割 ...
分类:
Web程序 时间:
2021-01-25 11:16:01
阅读次数:
0
Two strings are considered close if you can attain one from the other using the following operations: Operation 1: Swap any two existing characters. F ...
分类:
其他好文 时间:
2021-01-25 11:07:52
阅读次数:
0
1.在被监控主机安装好MySQL 相关步骤省略。 2.创建监控所需要的MySQL账户(MySQL服务器端) 1 2 MariaDB [(none)]>grant usage on *.* to zabbix@192.168.10.100 identified by '123456'; MariaDB ...
分类:
数据库 时间:
2021-01-25 10:58:33
阅读次数:
0