Modify Leaf Node Right Pointers
Filed under Samsung
The question
Write a function to change every right pointer of a leaf node to point to the successive leaf node.
No write-up yet. Related questions below have one.
Related Samsung questions
Collected from public candidate posts and coding forums. Updated Nov 2026.