Back to DSA sheet
Invert Binary Tree
EasyBinary TreesInvert a binary tree by swapping the left and right child of every node.
Constraints
- 0 <= nodes <= 100
- -100 <= Node.val <= 100
Sheets
Blind 75Grind 75NeetCode 150NeetCode 250
invert-binary-tree.cpp
Loading editor
Custom input (stdin)
Output
Run your code to see its output.