1. 程式人生 > >[CareerCup] 4.4 Create List at Each Depth of Binary Tree 二叉樹的各層建立連結串列

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