Invert a binary tree.
Example
Input:
1 | 4 |
Output:
1 | 4 |
Code
1 | public class TreeNode { |
1 | public TreeNode invertTree(TreeNode root) { |
写BUG的程序猿
Invert a binary tree.
Input:
1 | 4 |
Output:
1 | 4 |
1 | public class TreeNode { |
1 | public TreeNode invertTree(TreeNode root) { |