二叉树的镜像(十八)
题目描述
操作给定的二叉树,将其变换为源二叉树的镜像。
输入描述:
二叉树的镜像定义:
代码(已在牛客上 AC)
C++ 实现 2
https://leetcode-cn.com/problems/er-cha-shu-de-jing-xiang-lcof/
力扣上重做了一下, 还可以使用层序遍历实现:
题目描述
操作给定的二叉树,将其变换为源二叉树的镜像。
输入描述:
二叉树的镜像定义:
https://leetcode-cn.com/problems/er-cha-shu-de-jing-xiang-lcof/
力扣上重做了一下, 还可以使用层序遍历实现:
【数据结构】第五章——树与二叉树详细介绍二叉树的存储结构……
对称的二叉树(五十八)题目描述:
1题目求二叉树A的镜像,就是对称图,比如下面的树B是 12 代码实现#include ...
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M