Invert Binary Tree (medium)
Problem Statement
Given the root of a binary tree, invert it.
Example:
Given the following two binary trees:

Try it yourself
Try solving this question here:
NaN
NaN
LOADING....
. . .
Given the root of a binary tree, invert it.
Example:
Given the following two binary trees:
Try solving this question here: