码迷,mamicode.com
首页 >  
搜索关键字:leaf    ( 924个结果
Peter's Hobby
Problem DescriptionRecently, Peter likes to measure the humidity of leaves. He recorded a leaf humidity every day. There are four types of leaves wetn...
分类:其他好文   时间:2014-08-06 21:42:32    阅读次数:275
Binary Tree Level Order Traversal II leetcode java
题目:Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root).F....
分类:编程语言   时间:2014-08-05 05:18:08    阅读次数:340
[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. /** * Definition for binary tree ...
分类:其他好文   时间:2014-08-02 23:32:04    阅读次数:232
Sum Root to Leaf Numbers leetcode java
题目: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 w....
分类:编程语言   时间:2014-08-01 06:57:21    阅读次数:297
[leetcode]Path Sum
Path SumGiven 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 give...
分类:其他好文   时间:2014-07-31 23:18:10    阅读次数:227
[leetcode]Path Sum II
Path Sum IIGiven 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 tr...
分类:其他好文   时间:2014-07-31 23:17:10    阅读次数:175
设计模式之组合模式
定义:将对象组合成树形结构以表示“部分整体”的层次结构。组合模式使得用户对单个对象和组合对象的使用具有一致性。 组成: 1.Component 是组合中的对象声明接口,在适当的情况下,实现所有类共有接口的默认行为。声明一个接口用于访问和管理Component子部件。 2.Leaf 在组合中表示叶子结点对象,叶子结点没有子结点。 3.Composite 定义有枝节点行为,用来存储子部件,在C...
分类:其他好文   时间:2014-07-31 13:18:26    阅读次数:188
Path Sum II leetcode java
题目: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 tree and ....
分类:编程语言   时间:2014-07-31 05:22:15    阅读次数:287
Path Sum leetcode 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 su....
分类:编程语言   时间:2014-07-31 05:21:25    阅读次数:214
[LeetCode] Sum Root to Leaf Numbers(bfs)
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...
分类:其他好文   时间:2014-07-30 11:30:33    阅读次数:247
924条   上一页 1 ... 83 84 85 86 87 ... 93 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!