码迷,mamicode.com
首页 > 其他好文 > 详细

[CareerCup] 4.4 Create List at Each Depth of Binary Tree 二叉树的各层创建链表

时间:2015-08-02 00:55:41      阅读:137      评论:0      收藏:0      [点我收藏+]

标签:

 

4.4 Given a binary tree, design an algorithm which creates a linked list of all the nodes at each depth (e.g., if you have a tree with depth D, you‘ll have D linked lists).

 

[CareerCup] 4.4 Create List at Each Depth of Binary Tree 二叉树的各层创建链表

标签:

原文地址:http://www.cnblogs.com/grandyang/p/4694887.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!