您的位置:首页 > 运维架构

Binary Tree Operations(III) - Convert a Binary Tree to Down-Right Representation

2014-09-13 10:31 218 查看
This is the third article on binary tree operations. For other topics on binary tree, please refer to:

Binary Tree Operations(I)
Binary Tree Operations(II)

Left-Right representation of a binary tree is standard representation where every node has a pointer to left child and another pointer to right child.

Down-Right representation is an alternate representation where every node has a pointer to left (or first) child and another pointer to next sibling. So siblings at every level are connected from left to right.
- See more at:
http://bo-yang.github.io/2014/09/12/binary-tree-iii/#sthash.9lcJZ2dH.dpuf

http://bo-yang.github.io/2014/09/12/binary-tree-iii
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: