码迷,mamicode.com
首页 >  
搜索关键字:leaf    ( 924个结果
LeetCode111 MinmumDepthofBinaryTree java 题解
题目: Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along the shortest path from the root node down to the nearest leaf node. 解题: 求根节点到最近的叶子节点之间的距离 用...
分类:编程语言   时间:2015-07-06 16:08:36    阅读次数:152
LeetCode104_MaximumDepthofBinaryTree Java题解
题目: 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 leaf node. 解题: 求最大深度  和前面一题类似  用递归遍历就...
分类:编程语言   时间:2015-07-06 16:06:14    阅读次数:143
[leetcode]-Maximum Depth of Binary Tree
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 leaf node.Hide Tags: Tree ,Depth-first Search/** * D...
分类:其他好文   时间:2015-07-06 12:29:01    阅读次数:112
LeetCode112 PathSum Java题解
题目: Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum. For example: Given the below binary tree...
分类:编程语言   时间:2015-07-06 12:18:44    阅读次数:94
kali linux虚拟wifi搭建
1、设置DHCP:leaf/etc/dhcp/dhcpd.conf编辑dhcp服务器配置文件,修改如下:authoritative;default-lease-time700;max-lease-time8000;subnet10.0.0.0netmask255.255.255.0{optionrouters10.0.0.1;optionsubnet-mask255.255.255.0;optiondomain-name"FreeWiFi";optiondomain-nam..
分类:系统相关   时间:2015-07-05 16:56:55    阅读次数:313
树结构
树( Tree):n(n≥O) 个结点的有限集。(只有一个根节点,子集互不相交)节点的度(Degree):节点拥有的子节点数(树的degree = max(各子节点的degree))叶(leaf):degree = 0树的深度(Depth):节点的最大层次树的表示: 双亲表示法:各节点存在一个指针....
分类:其他好文   时间:2015-07-05 00:50:11    阅读次数:241
Path Sum II
Description:Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.For example:Given the below binary t...
分类:其他好文   时间:2015-07-04 18:21:09    阅读次数:91
[Leetcode]-Path Sum
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.For example: Given the below binary tree and sum = 2...
分类:其他好文   时间:2015-07-04 15:32:56    阅读次数:95
【LeetCode】Path Sum
称号Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum....
分类:其他好文   时间:2015-07-02 19:21:40    阅读次数:98
LeetCode_Sum Root to Leaf Numbers
LeetCode_Sum Root to Leaf Numbers 解题思路...
分类:其他好文   时间:2015-07-01 22:17:28    阅读次数:146
924条   上一页 1 ... 51 52 53 54 55 ... 93 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!