Const TR_LEVEL_MARK = "+"Const TR_COL_INDEX = "A"Const TR_COL_LEVEL = "E"Const TR_COL_NAME = "C"Const TR_COL_COUNT = "D"Const TR_COL_TREE_START = "F"C...
分类:
其他好文 时间:
2014-07-18 14:16:07
阅读次数:
414
Genealogical tree
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 2738
Accepted: 1838
Special Judge
Description
The system of Martians' blood...
分类:
其他好文 时间:
2014-07-18 14:01:29
阅读次数:
189
Dropping BallsA number of K balls are dropped one by one from the root of a fully binary tree structure FBT. Each time the ball being dropped first v....
分类:
其他好文 时间:
2014-07-18 12:14:24
阅读次数:
202
Codeforces Round #256 (Div. 2)
题目链接
A题:没什么好说的水题,判断一下两种各需要多少个,加起来看会不会超过即可
B题:首先计数字母,看b串有没有多余字符,判断掉need tree的情况,然后判断b是否能和a匹配,如果可以且长度不同,就是auto,如果不行且长度相同,就是array,否则就是both
C题:贪心,每次选择最低的去横向刷,刷完会多出几个...
分类:
其他好文 时间:
2014-07-18 11:25:01
阅读次数:
271
题意是给我们两个字符串,再在第一个字符串中找第二个,
给了我们两种方法,一:在第一个字符串删掉一些字符后得到第二个字符串;
二:在第一个字符串中改变一些字符的先后顺序得到字符串二;
如果只用第一种方法输出: automaton;
只用第二种输出:array
两种都用输出:both;
找不到输出:need tree;
直接找就行,,,,,,水
#include
#include...
分类:
其他好文 时间:
2014-07-18 11:17:05
阅读次数:
191
Given a binary tree containing digits from 0-9 only,
each root-to-leaf path could represent a number.
An example is the root-to-leaf path 1->2->3 which represents
the number 123.
Find the to...
分类:
其他好文 时间:
2014-07-18 11:13:57
阅读次数:
204
Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as a binary tree in which the depth...
分类:
其他好文 时间:
2014-07-18 09:33:38
阅读次数:
194
Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest le...
分类:
其他好文 时间:
2014-07-17 23:27:12
阅读次数:
216
http://blog.csdn.net/kunoy/article/details/8067801首先主要代码源自网络,对那些无私的奉献者表示感谢! 笔者对这些代码做了二次修改,并总结如下: Extjs3.x版本下拉树代码:[javascript]view plaincopyExt.ux.Tree...
分类:
Web程序 时间:
2014-07-17 22:23:23
阅读次数:
493
Two elements of a binary search tree (BST) are swapped by mistake.Recover the tree without changing its structure.Note:A solution using O(n) space is ...
分类:
其他好文 时间:
2014-07-17 17:32:50
阅读次数:
246