AlgoMaster Logo

Invert Binary Tree

tree=[4, 2, 7, 1, 3, 6, 9]
0 / 25
algomaster.io
Step:Start: invert both subtrees of every node, then swap them (post-order)