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

 

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).

 

posted @ 2015-08-01 23:21  Grandyang  阅读(562)  评论(0编辑  收藏  举报
Fork me on GitHub