原题地址:https://oj.leetcode.com/problems/validate-binary-search-tree/题意:检测一颗二叉树是否是二叉查找树。解题思路:看到二叉树我们首先想到需要进行递归来解决问题。这道题递归的比较巧妙。让我们来看下面一棵树:
...
分类:
编程语言 时间:
2014-05-26 10:48:19
阅读次数:
291
原题地址:https://oj.leetcode.com/problems/same-tree/题意:判断两棵树是否是同一棵树。解题思路:这题比较简单。用递归来做。首先判断两个根节点的值是否相同,如果相同,递归判断根的左右子树。代码:#
Definition for a binary tree n....
分类:
编程语言 时间:
2014-05-26 10:30:17
阅读次数:
289
原题地址:https://oj.leetcode.com/problems/symmetric-tree/题意:判断二叉树是否为对称的。Given
a binary tree, check whether it is a mirror of itself (ie, symmetric around ...
分类:
编程语言 时间:
2014-05-26 10:18:52
阅读次数:
293
原:http://blog.csdn.net/asasj57/article/details/5641161PCHOME
下载http://download.pchome.net/search-0--directx----------1-1-3.htmlDirectX 8.0
SDK 开发包 ...
分类:
其他好文 时间:
2014-05-26 07:31:49
阅读次数:
1004
Search bar delegate-
(void)searchBarTextDidBeginEditing:(UISearchBar *)searchBar{ UITextField
*searchBarTextField = nil; for (UIView *mainview i...
分类:
移动开发 时间:
2014-05-26 07:25:46
阅读次数:
310
在Eclipse里初次使用Maven,右键project->add
dependency, 发现search不管用,这时候需要按照以下步骤操作:Goto "Preferences ->
Maven"Check"Download repository index updates on start"an...
分类:
系统相关 时间:
2014-05-26 07:16:26
阅读次数:
390
题目一:
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.
Fin...
分类:
其他好文 时间:
2014-05-26 04:06:41
阅读次数:
248
http://poj.org/problem?id=3013
题意:
Because of a technical difficulty, price of an edge will be (sum of weights of all descendant nodes) × (unit price of the edge).这句话一直没看懂。后面还以为是最小生成树。
正确...
分类:
其他好文 时间:
2014-05-24 20:27:13
阅读次数:
266
SEO Introduction The SEO Introduction tutorial
explains the importance of search engine optimization. 目录 SEO Introduction
Content HTML Tags Architectu...
分类:
其他好文 时间:
2014-05-24 09:27:47
阅读次数:
285
subtree structure in tree
分类:
其他好文 时间:
2014-05-24 09:23:20
阅读次数:
283