Modified Populating Next Right Pointers in Each Node
Filed under Moonfrog Labs
The question
Populate next right pointers in each node of a binary tree, with the modification that the rightmost node at any level should point to the leftmost node at that same level instead of null.
No write-up yet. Related questions below have one.
Related Moonfrog Labs questions
Collected from public candidate posts and coding forums. Updated Nov 2026.