[CareerCup] 4.4 Create List at Each Depth of Binary Tree 二叉樹的各層建立連結串列

Grandyang發表於2015-08-01

 

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

 

相關文章