Billu Class
DSA
Gen AI
AWS
JavaScript
Search
Ctrl K
More
Menu
DSA
Visualizer
Deep Dive
Notes
DSA
Deep Dive
Topics
Deep Dive
Invert Binary Tree
226. Invert Binary Tree · Trees · 34 of 78
1/5
Mirror the tree
8
4
12
2
6
10
14
In this lesson
Step 1 of 5 · ← → keys
1
Mirror the tree
2
Swap 8's children
3
Swap 4's children
4
Swap 12's children
5
Mirrored
The question
Mirror a binary tree.