0226. Invert Binary Tree
Easy | Tree + Recursion / Stack | 16 ms (99.96%), 14 MB (90.10%)
Source: LeetCode - Invery Binary Tree GitHub: Solution / Performance
Given the root
of a binary tree, invert the tree, and return its root.
Swap left- and right-pointer in each iteration.
Last updated