码迷,mamicode.com
首页 >  
搜索关键字:depth    ( 1433个结果
[LeetCode]111 Minimum Depth of Binary Tree
https://oj.leetcode.com/problems/minimum-depth-of-binary-tree/http://blog.csdn.net/linhuanmars/article/details/19660209/** *Definitionforbinarytree *publicclassTreeNode{ *intval; *TreeNodeleft; *TreeNoderight; *TreeNode(intx){val=x;} *} */ publicclassSoluti..
分类:其他好文   时间:2015-01-06 15:47:12    阅读次数:118
[LeetCode]104 Maximum Depth of Binary Tree
https://oj.leetcode.com/problems/maximum-depth-of-binary-tree/http://blog.csdn.net/linhuanmars/article/details/19659525/** *Definitionforbinarytree *publicclassTreeNode{ *intval; *TreeNodeleft; *TreeNoderight; *TreeNode(intx){val=x;} *} */ publicclassSoluti..
分类:其他好文   时间:2015-01-06 12:08:50    阅读次数:184
Balanced Binary Tree
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 of the two subtrees of every node never diffe...
分类:其他好文   时间:2014-12-30 17:13:32    阅读次数:135
Leetcode:Balanced Binary Tree
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-12-29 13:42:53    阅读次数:158
Balanced Binary Tree
本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/42218839 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 of the two subtrees o...
分类:其他好文   时间:2014-12-29 09:03:54    阅读次数:134
GCD 深入理解(一)
本文由@nixzhu翻译至raywenderlich的《grand-central-dispatch-in-depth-part-1》虽然 GCD 已经出现过一段时间了,但不是每个人都明了其主要内容。这是可以理解的;并发一直很棘手,而 GCD 是基于 C 的 API ,它们就像一组尖锐的棱角戳进 O...
分类:其他好文   时间:2014-12-26 20:13:07    阅读次数:163
GCD 深入理解(二)
转自@nixzhu的GitHub主页(译者:Riven、@nixzhu),原文《Grand Central Dispatch In-Depth: Part 2/2》欢迎来到GCD深入理解系列教程的第二部分(也是最后一部分)。在本系列的第一部分中,你已经学到超过你想像的关于并发、线程以及GCD 如何工...
分类:其他好文   时间:2014-12-26 20:12:05    阅读次数:329
[LeetCode]Clone Graph
Clone an undirected graph. Each node in the graph contains a label and a list of its neighbors. OJ's undirected graph serialization: Nodes are labeled uniquely. We use # as a separator for each...
分类:其他好文   时间:2014-12-24 21:36:49    阅读次数:188
[LeetCode]110.Balanced Binary Tree
【题目】 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 of the two subtrees of every node n...
分类:其他好文   时间:2014-12-24 16:23:25    阅读次数:200
二叉树的基本操作及应用(三)
#include #include #include #include typedef char DataType; int depth=0; int h1=1; int nlayer=1; char ch2; typedef struct node { DataType data;//节点数据元素 struct node *lchild;//指向左孩子 struct n...
分类:其他好文   时间:2014-12-21 18:02:51    阅读次数:339
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!