Problem 116 · Medium

Populating Next Right Pointers in Each Node

Connect all nodes at the same level with next pointers in a perfect binary tree.

Open the interactive visualisation