algorithms.tutorialhorizon.com
Populate Next Siblings Pointers in a Given Binary Tree OR Populate Next Right Pointers in Each Node | Algorithms
Given a binary tree with three pointers left, right and nextSibling). Write the program to provide the nextsibling pointers. This problem can also be referred as "Populating Next Right Pointers in Each Node"