码迷,mamicode.com
首页 >  
搜索关键字:leaf    ( 924个结果
156. Binary Tree Upside Down
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) or empty, flip it up ...
分类:其他好文   时间:2016-09-24 23:36:00    阅读次数:255
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 ...
分类:其他好文   时间:2016-09-24 07:07:27    阅读次数:169
重做257. Binary Tree Paths
Given a binary tree, return all root-to-leaf paths. For example, given the following binary tree: All root-to-leaf paths are: Solution1: 用string是最方便的。 ...
分类:其他好文   时间:2016-09-24 07:03:29    阅读次数:201
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 ...
分类:其他好文   时间:2016-09-23 06:37:17    阅读次数:133
156. Binary Tree Upside Down
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) or empty, flip it up ...
分类:其他好文   时间:2016-09-22 06:35:56    阅读次数:130
257. Binary Tree Paths
Given a binary tree, return all root-to-leaf paths. For example, given the following binary tree: All root-to-leaf paths are: ...
分类:其他好文   时间:2016-09-17 10:41:32    阅读次数:122
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 whic ...
分类:其他好文   时间:2016-09-16 00:14:08    阅读次数:158
LeetCode-Binary Tree Paths
Given a binary tree, return all root-to-leaf paths. For example, given the following binary tree: All root-to-leaf paths are: Credits:Special thanks t ...
分类:其他好文   时间:2016-09-14 07:17:24    阅读次数:146
257. Binary Tree Paths
Given a binary tree, return all root-to-leaf paths. For example, given the following binary tree: All root-to-leaf paths are: ...
分类:其他好文   时间:2016-09-12 00:51:14    阅读次数:142
112. 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. F ...
分类:其他好文   时间:2016-09-12 00:44:02    阅读次数:102
924条   上一页 1 ... 29 30 31 32 33 ... 93 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!