原题地址基本二叉树操作。O[ ][ ][ ]O[ ]代码: 1 TreeNode *restore(vector &preorder, vector &inorder, int pp, int ip, int len) { 2 if (len left = r...
分类:
其他好文 时间:
2015-01-30 10:36:12
阅读次数:
125
Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequences, you are supposed to ou...
分类:
其他好文 时间:
2015-01-28 14:32:56
阅读次数:
152
/************************************************************************/ /* 44: Construct Binary Tree from Inorder and Postorder Traversal */ /*...
分类:
其他好文 时间:
2015-01-27 23:29:07
阅读次数:
135
/************************************************************************/ /* 43: Construct Binary Tree from Preorder and Inorder Traversal */ /**...
分类:
其他好文 时间:
2015-01-27 23:28:36
阅读次数:
209
/************************************************************************/ /* 41: Binary Tree Inorder Traversal */ /******************************...
分类:
其他好文 时间:
2015-01-27 23:27:49
阅读次数:
160
Given a binary tree, return theinordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[1,3,2].Note...
分类:
其他好文 时间:
2015-01-23 17:46:36
阅读次数:
121
Given a binary tree, return theinordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[1,3,2].Note...
分类:
其他好文 时间:
2015-01-22 01:34:22
阅读次数:
170
本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/42876657
Given a binary tree, return the inorder traversal of its nodes' values.
For example:
Given binary tree {1,#,2,3},
1
2
/
3
return [1,3,2].
Note: Re...
分类:
其他好文 时间:
2015-01-19 21:11:04
阅读次数:
184
Given a binary tree, return theinordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[1,3,2].inor...
分类:
其他好文 时间:
2015-01-18 11:45:40
阅读次数:
173
Given inorder and postorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree. 1 /** 2 * De....
分类:
其他好文 时间:
2015-01-17 20:47:15
阅读次数:
211