摘要: 03-树3. Tree Traversals Again (25)题目来源:http://www.patest.cn/contests/mooc-ds/03-%E6%A0%913An inorder binary tree traversal can be implemented in a non-... 阅读全文
posted @ 2015-08-21 19:05 llhthinker 阅读(4480) 评论(0) 推荐(1) 编辑
摘要: 03-树2. List Leaves (25)题目来源:http://www.patest.cn/contests/mooc-ds/03-%E6%A0%912Given a tree, you are supposed to list all the leaves in the order of t... 阅读全文
posted @ 2015-08-21 18:50 llhthinker 阅读(4691) 评论(0) 推荐(0) 编辑
摘要: 对于一种数据结构而言,遍历是常见操作。二叉树是一种基本的数据结构,是一种每个节点的儿子数目都不多于2的树。二叉树的节点声明如下:1 typedef struct TreeNode *PtrToNode;2 typedef struct TreeNode *BinTree;3 4 struct T... 阅读全文
posted @ 2015-08-21 18:11 llhthinker 阅读(71253) 评论(8) 推荐(11) 编辑
TOP