Leetcode 117. Populating Next Right Pointers in Each Node II
Populate each node's next pointer to point to its immediate right neighbor on the same level (or NULL if none) in a binary tree that may be incomplete. The challenge is to perform this in-place with only constant extra space (recursive stack space allowed).
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
Your account is free and you can post anonymously if you choose.