Link all the level order nodes to makes a linked list with the first node of each level acting as the root of that linklist.
10
/ \
6 17
/ / \
4 14 19
So the Linklist will be
10->null
6->17->null
4->14->19->null
No comments:
Post a Comment