Problem 117 · Medium

Populating Next Right Pointers in Each Node II

Connect nodes at the same level with next pointers in an arbitrary binary tree (not necessarily perfect).

Open the interactive visualisation