码迷,mamicode.com
首页 >  
搜索关键字:leaf    ( 924个结果
Leetcode[107]-Binary Tree Level Order Traversal II
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).For example: Given binary tree {3,9,20,#,#,15,7}, 3...
分类:其他好文   时间:2015-06-13 12:57:50    阅读次数:98
[LeetCode] Binary Tree Upside Down
Problem Description:Given a binary tree where all the right nodes are either leaf nodes with a sibling (a left node that shares the same parent node) ...
分类:其他好文   时间:2015-06-12 23:47:36    阅读次数:159
Leetcode[113]-Path Sum II
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 sum = 22, 5 / \...
分类:其他好文   时间:2015-06-12 17:17:40    阅读次数:84
Leetcode[129]-Sum Root to Leaf Numbers
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.Find the total sum of al...
分类:其他好文   时间:2015-06-12 14:55:41    阅读次数:100
Leetcode[104]-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 a binary...
分类:其他好文   时间:2015-06-11 19:26:53    阅读次数:126
Sum Root to Leaf Numbers
Given a binary tree containing digits from0-9only, each root-to-leaf path could represent a number.An example is the root-to-leaf path1->2->3which rep...
分类:其他好文   时间:2015-06-11 06:57:21    阅读次数:90
Path Sum I, II
简单题IGiven 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...
分类:其他好文   时间:2015-06-10 06:33:31    阅读次数:101
Binary Tree Level Order Traversal II
题目描述 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)....
分类:其他好文   时间:2015-06-07 21:38:29    阅读次数:119
hive udaf 用maven打包执行create temporary function 时报错
用maven打包写好的jar,在放到hive中作临时函数时报错。 错误信息如下: hive> create temporary function maxvalue as "com.leaf.data.Maximum"; java.lang.SecurityException: Invalid signature file digest for Manifest main attribu...
分类:其他好文   时间:2015-06-06 16:38:31    阅读次数:227
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 t...
分类:其他好文   时间:2015-06-06 12:10:56    阅读次数:131
924条   上一页 1 ... 53 54 55 56 57 ... 93 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!