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
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
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
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
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
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
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
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
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
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