Invert Binary Tree

Asked at Microsoft · Coding & Leetcode-style Questions · Difficulty: Easy

Given the root of a binary tree, invert the tree, and return the root of the inverted tree.

Loading the problem…