LeetCode: https://leetcode.com/problems/invert-binary-tree/
Given the root of a binary tree, invert the tree, and return its root.
node
4
0
7
1
2
2
1
3
3
4
6
5
9
6
tree=[4, 7, 2, 1, 3, 6, 9]
Step 1 / 4
Step 1:
At root=4, swap its left and right children.
Pointers: node=0
Focus: swap @ [0]