几种树:(1)平衡树:package com.jp.algorithm.tree;import java.util.Iterator;import java.util.NoSuchElementException;/** * 平衡二叉树 * * 定义:首先它是一种特殊的二叉排序树,其次它的左子树和....
分类:
其他好文 时间:
2014-06-28 17:14:17
阅读次数:
156
bst :binary search tree(二叉搜索树)对于树中的每个节点n,左子树中的所有节点的关键字都小于节点n的关键字,右子树中所有节点的关键字都大于节点n的关键字struct node{ int key; struct node *left; //左节点 s...
分类:
其他好文 时间:
2014-06-28 17:06:24
阅读次数:
186
题目:Binary Tree Level Order Traversal i iii和ii的差别仅在于最后将结果逆序一下就行了,算法上基本相同个人思路:1、二叉树的层次遍历,我们一层一层地处理,用一个队列(A队列)将每一层的所有节点按照从左到右的顺序入队2、待该队列的所有节点都出队,并且用另外一个队...
分类:
其他好文 时间:
2014-06-28 17:01:33
阅读次数:
235
【Tags and Layers】1、tags and layers 配置面板。"Edit" -> "Project Settings" -> "Tags and Layers"来打开设置面板。 2、tag可以理解为一类元素的标记,如hero、enemy、apple-tree等。通过设置tag,可....
分类:
其他好文 时间:
2014-06-28 16:00:08
阅读次数:
264
我有一个Hyper-V上的虚拟机, 在使用的过程中我给这个虚拟机创建了多个snapshots。 有一天我把整个的snapshots tree从root删掉了(delete snapshot with subtree), 然后我把虚拟机关机, 看到它在merge. 我期待着所有的avhd能够merge...
分类:
其他好文 时间:
2014-06-20 22:43:33
阅读次数:
284
Given a binary tree, return the preorder traversal of its nodes' values.For example:Given binary tree {1,#,2,3}, 1 \ 2 / 3return [1,2,3]...
分类:
其他好文 时间:
2014-06-20 19:37:40
阅读次数:
136
东西都上传到这里了:https://github.com/RexKang/Zabbix/tree/master/OS/Linux-disk-discovery 需要用到的东西:Zabbix的LLD:https://www.zabbix.com/documentation/2.0/manual/dis...
分类:
系统相关 时间:
2014-06-20 19:30:34
阅读次数:
393
题目:Symmetric TreeGiven a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmet...
分类:
其他好文 时间:
2014-06-20 18:44:41
阅读次数:
279
Given a binary tree containing digits from0-9only, each root-to-leaf path could represent a number.An example is the root-to-leaf path1->2->3which rep...
分类:
其他好文 时间:
2014-06-20 15:30:19
阅读次数:
227
框架页面如下: 在tree页面中想要刷新opertop页面内容,两种方法:第一种:...
分类:
其他好文 时间:
2014-06-20 14:46:59
阅读次数:
121