226. Invert Binary Tree

Description

Invert a binary tree.

Constraints

Approach

Examples

Input: [4, 2, 7, 1, 3, 6, 9]

Output: [4, 7, 2, 9, 6, 3, 1]

Solutions

Follow up

Last updated