Skip to content

Latest commit

 

History

History

InvertBinaryTree

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Invert Binary Tree

Leetcode Link

Problem:

Invert a binary tree.

Example:

Input:
     4
   /   \
  2     7
 / \   / \
1   3 6   9

Output:
     4
   /   \
  7     2
 / \   / \
9   6 3   1