Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Latest commit

 

History

History
executable file
·
27 lines (20 loc) · 275 Bytes

File metadata and controls

executable file
·
27 lines (20 loc) · 275 Bytes

题目

Invert a binary tree.

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

to

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

解题思路

见程序注释