Back to Questions

Invert Binary Tree

43.5K viewsAsked at Netflix
Easy

Question Explain

Given the root of a binary tree, invert the tree (i.e., mirror it) and return its root. Implement using either recursion or iteration.

Start Trying This Question Simulation

Practice answering orally or with text to get instant AI feedback.

Practice with This Question
Invert Binary Tree - Interview Question