码迷,mamicode.com
首页 >  
搜索关键字:traversal    ( 1649个结果
【leetcode】Construct Binary Tree from Inorder and Postorder Traversal
Given inorder and postorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.题解:如下图所示的一棵树: ...
分类:其他好文   时间:2014-07-19 19:00:44    阅读次数:262
【leetcode刷题笔记】Construct Binary Tree from Preorder and Inorder Traversal
Given preorder and inorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.类似http://www.cn...
分类:其他好文   时间:2014-07-19 18:19:06    阅读次数:243
【leetcode刷题笔记】Binary Tree Level Order Traversal II
Given a binary tree, return thebottom-up level ordertraversal of its nodes' values. (ie, from left to right, level by level from leaf to root).For exa...
分类:其他好文   时间:2014-07-18 20:06:13    阅读次数:255
[LeetCode]Binary Tree Preorder Traversal
[LeetCode]Binary Tree Preorder Traversal...
分类:其他好文   时间:2014-07-16 09:08:19    阅读次数:257
LeetCode——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}, ...
分类:其他好文   时间:2014-07-14 17:31:14    阅读次数:229
LeetCode——Binary Tree Level Order Traversal
Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level). For example: Given binary tree {3,9,20,#,#,15,7}, 3 / 9 20 ...
分类:其他好文   时间:2014-07-14 17:29:03    阅读次数:166
[LeetCode]Binary Tree Inorder Traversal
[LeetCode]Binary Tree Inorder Traversal...
分类:其他好文   时间:2014-07-14 16:10:00    阅读次数:193
Hierarchical Tree Traversal in Graphics Pipeline Stages
BACKGROUNDMany algorithms on a graphics processing unit (GPU) may benefit from doing a query in a hierarchical tree structure (including quad-trees, o...
分类:其他好文   时间:2014-07-13 19:47:28    阅读次数:289
Binary Tree Preorder Traversal
Given a binary tree, return the preorder traversal of its nodes' values. For example: Given binary tree {1,#,2,3}, 1 2 / 3 return [1,2,3]. /** * Definition for bi...
分类:其他好文   时间:2014-07-13 18:46:25    阅读次数:249
Binary Tree Postorder Traversal
Given a binary tree, return the postorder traversal of its nodes' values. For example: Given binary tree {1,#,2,3}, 1 2 / 3 return [3,2,1]. Note: Recursive solut...
分类:其他好文   时间:2014-07-13 17:18:19    阅读次数:193
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!