Problem Description
One day Sophia finds a very big square. There are n trees in the square. They are all so tall. Sophia is very interesting in them.
She finds that trees maybe disharmony and...
分类:
其他好文 时间:
2015-06-10 22:36:35
阅读次数:
149
题目地址:http://acm.hdu.edu.cn/showproblem.php?pid=1390题目描述:Binary NumbersTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)T...
分类:
其他好文 时间:
2015-06-10 22:21:13
阅读次数:
124
/** * Definition for a binary tree node. * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * }; */struct T...
分类:
其他好文 时间:
2015-06-10 20:42:29
阅读次数:
96
/** * Definition for a binary tree node. * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * }; */#define ...
分类:
其他好文 时间:
2015-06-10 14:08:26
阅读次数:
100
/** * Definition for a binary tree node. * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * }; */#define ...
分类:
其他好文 时间:
2015-06-10 14:07:08
阅读次数:
91
转自:http://computer.uoh.edu.cn/mysql/1677.htmlMYSQL中STRING支持类型有:CHAR、VARCHAR、TINYTEXT、TEXT、MEDIUMTEXT、LONGTEXT、BINARY、VARBINARY、TINYBLOG、MEDIUMBLOG、BLO...
分类:
数据库 时间:
2015-06-10 13:50:47
阅读次数:
171
Validate Binary Search TreeGiven a binary tree, determine if it is a valid binary search tree (BST).Assume a BST is defined as follows:The left subtre...
分类:
其他好文 时间:
2015-06-10 12:03:48
阅读次数:
89
Given a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example:Given the below binary tree, 1 ...
分类:
其他好文 时间:
2015-06-10 12:03:48
阅读次数:
88
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 stil...
分类:
其他好文 时间:
2015-06-10 11:45:22
阅读次数:
101
Given a binary tree, flatten it to a linked list in-place.For example,Given 1 / \ 2 5 / \ \ 3 4 6The flattened t...
分类:
其他好文 时间:
2015-06-10 07:41:49
阅读次数:
105