Back to Question

Invert Binary Tree

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

Click "Start Speaking" and answer the question naturally.