1、安装监控插件wgethttps://www.percona.com/downloads/percona-monitoring-plugins/percona-monitoring-plugins-1.1.7/binary/redhat/6/x86_64/percona-zabbix-templates-1.1.7-2.noarch.rpmrpm-ivhpercona-zabbix-templates-1.1.7-2.noarch.rpmyuminstallpercona-zabbix-tem..
分类:
数据库 时间:
2017-07-25 19:57:59
阅读次数:
200
弱弱的吐个槽 太久不刷题果然会生疏啊 三天不练手生 古人诚不欺我也 初看该题 很明显就是一个有记录的遍历 先序遍历,遍历过程中保存路径即可 做该题中 自己主要犯得错误有: 1.忽视了List的引用传递; 2.每个节点压入路径 到了叶子时需要弹出 3.递归本质上是开启多个kernel层层嵌套 一直执行 ...
分类:
其他好文 时间:
2017-07-25 19:53:16
阅读次数:
147
1. 求深度: recursive 遍历左右子树,递归跳出时每次加一。 2. 广度搜索 使用队列 3. 二叉查找树 由于二叉查找树是递归定义的,插入结点的过程是:若原二叉查找树为空,则直接插入;否则,若关键字 k 小于根结点关键字,则插入到左子树中,若关键字 k 大于根结点关键字,则插入到右子树中。 ...
分类:
其他好文 时间:
2017-07-25 19:42:08
阅读次数:
151
题目: Invert a binary tree. to 题意及分析:给出一棵二叉树,对每个节点交换左右子树。对于一个需要交换的节点有三种情况:(1)有左子树,无右子树;(2)有右子树,无左子树;(3)左右子树都有;对着三种情况分别交换左右子树,然后继续对子树递归即可得到结果。 代码: ...
分类:
编程语言 时间:
2017-07-25 10:29:39
阅读次数:
224
题目: Given a complete binary tree, count the number of nodes. Definition of a complete binary tree from Wikipedia:In a complete binary tree every level ...
分类:
编程语言 时间:
2017-07-24 23:46:44
阅读次数:
198
You are given a binary tree in which each node contains an integer value. Find the number of paths that sum to a given value. The path does not need t ...
分类:
其他好文 时间:
2017-07-24 23:29:58
阅读次数:
153
题目: Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom. For ...
分类:
编程语言 时间:
2017-07-24 21:20:39
阅读次数:
151
Given two binary trees and imagine that when you put one of them to cover the other, some nodes of the two trees are overlapped while the others are n ...
分类:
其他好文 时间:
2017-07-24 21:20:16
阅读次数:
213
DB2 内置的函数真的是很多,要精通每个函数几乎是不可能的,所以本文并不打算介绍每个函数的具体用法,而是提供一个概览,让您了解每个函数的功能,这样,当你感觉你需要某些功能的函数时,再学习它们的具体用法也不迟。 DB2 内置函数大体分为以下几类: 下面我们就了解一下每类都有哪些函数,以及这些函数的功能 ...
分类:
数据库 时间:
2017-07-24 19:08:38
阅读次数:
294
题目: Follow up for problem "Populating Next Right Pointers in Each Node". What if the given tree could be any binary tree? Would your previous solution ...
分类:
编程语言 时间:
2017-07-24 17:28:38
阅读次数:
226