The problem:Given a binary tree, return thepreordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3retur...
分类:
其他好文 时间:
2015-01-11 10:54:00
阅读次数:
156
The problem:Given a binary tree, return thepreordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3retur...
分类:
其他好文 时间:
2015-01-11 10:53:49
阅读次数:
143
The problem:Given a binary tree, return theinordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return...
分类:
其他好文 时间:
2015-01-11 06:10:46
阅读次数:
226
The problem:Given two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally ...
分类:
其他好文 时间:
2015-01-11 06:09:38
阅读次数:
186
public static void main(String[] args) { System.out.println(GetInsertLocation(new int[]{0,2},-1)); System.out.println(GetInsertLocati...
分类:
其他好文 时间:
2015-01-11 06:09:17
阅读次数:
228
The problem:Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: ...
分类:
其他好文 时间:
2015-01-11 06:09:14
阅读次数:
197
The problem 1: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 t...
分类:
其他好文 时间:
2015-01-11 06:07:49
阅读次数:
216
The problem:Given a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example:Given the below binary tree,...
分类:
其他好文 时间:
2015-01-11 00:59:13
阅读次数:
287
Given a binary tree, flatten it to a linked list in-place.For example,Given 1 / \ 2 5 / \ \ 3 4 6The flattened t...
分类:
其他好文 时间:
2015-01-11 00:53:08
阅读次数:
262
Binary Tree Level Order Traversal II...
分类:
其他好文 时间:
2015-01-10 18:19:33
阅读次数:
128