几种树:(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
Given a binary tree, return the inorder traversal of its nodes' values.For example: Given binary tree {1,#,2,3}, 1 \ 2 / 3return [1,3,2]...
分类:
其他好文 时间:
2014-06-28 11:26:55
阅读次数:
206
原地址:http://blog.csdn.net/akara/article/details/6165421[原创]使用行为树(Behavior Tree)实现网游奖励掉落系统by AKara 2011-01-24 @http://blog.csdn.net/akara@ akarachen(at)...
分类:
其他好文 时间:
2014-06-24 09:53:58
阅读次数:
245
原地址:http://blog.csdn.net/akara/article/details/6084786[原创]使用行为树(Behavior Tree)实现游戏AIby AKara 2010-12-09 @http://blog.csdn.net/akara@ akarachen(at)gmai...
分类:
其他好文 时间:
2014-06-24 09:37:08
阅读次数:
354
题目: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