Problems / Trees / Invert Binary Tree
#46 Easy Time O(n) Space O(n) Animated

Invert Binary Tree

Invert a binary tree (mirror it).

LeetCode ↗
Approach: DFS (Recursion)
Click play to start
Step 0 / 0
Press play to start the visualization.

Steps