Convert a binary tree to its mirror image
Filed under Snapdeal
The question
Given a binary tree, modify it in-place so that every node's left and right subtrees are swapped, forming its mirror image.
No write-up yet. Related questions below have one.
Related Snapdeal questions
Collected from public candidate posts and coding forums. Updated Nov 2026.