leetcode--Invert Binary Tree
来源:互联网 发布:樱井知香怎么喷那么多 编辑:程序博客网 时间:2024/06/05 15:57
Invert a binary tree.
4 / \ 2 7 / \ / \1 3 6 9to
4 / \ 7 2 / \ / \9 6 3 1
题意:翻转二叉树
分类:二叉树
解法1:递归。交换左右子节点,然后递归交换左右子树。
原文链接http://blog.csdn.net/crazy__chen/article/details/46484457
阅读全文
0 0
- [leetcode] Invert Binary Tree
- [LeetCode]Invert Binary Tree
- leetcode:Invert Binary Tree
- LeetCode Invert Binary Tree
- LeetCode | Invert Binary Tree
- leetcode--Invert Binary Tree
- [leetcode] Invert Binary Tree
- [LeetCode] Invert Binary Tree
- LeetCode Invert Binary Tree
- leetcode : Invert Binary Tree
- [LeetCode] Invert Binary Tree
- [Leetcode]Invert Binary Tree
- LeetCode: Invert Binary Tree
- LeetCode Invert Binary Tree
- leetcode: Invert Binary Tree
- LeetCode Invert Binary Tree
- LeetCode || Invert Binary Tree
- LeetCode:Invert Binary Tree
- MySQL优化所调整的10项配置
- 使用Spring连接数据库,配置JSP json数据
- Linux shell script基础学习
- JS学习-Map和Set
- 8月8 某公司一面
- leetcode--Invert Binary Tree
- 3D控件Aspose.3D 8月新版V17.8发布 | 支持6面多维地图
- 读取win或linux绝对路径下的属性文件
- 【Linux】Linux中常用操作命令
- iOS开发
- Linux使用Wine安装腾讯TIM
- java IO流面试总结
- leetcode--Binary Tree Zigzag Level Order Traversal
- Android中关于键盘管理,点击除editText外的区域收起键盘