Interview Questions

Link levels of the tree

Given binary tree, connect all nodes on each level of the tree. Each node has additional pointer "next" which you need to initialize to node on the same level.

View Solution
comments powered by Disqus