← Microsoft questions

Construct Mirror Tree Recursively and Iteratively

Filed under Microsoft

Given a binary tree, produce its mirror image. Provide both a recursive approach (swapping children) and an iterative approach (using a queue/stack).

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Microsoft questions

Collected from public candidate posts and coding forums. Updated Nov 2026.