Back to QuestionsPractice with This Question
Invert Binary Tree
43.5K views•Asked 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.