当前位置:网站首页>剑指 Offer 27. 二叉树的镜像
剑指 Offer 27. 二叉树的镜像
2022-07-02 14:21:00 【anieoo】
原题链接:剑指 Offer 27. 二叉树的镜像
solution:
class Solution {
public:
TreeNode* mirrorTree(TreeNode* root) {
if(root == NULL) return NULL;
swap(root->left,root->right);
mirrorTree(root->left);
mirrorTree(root->right);
return root;
}
};边栏推荐
- DigiCert SSL证书支持中文域名申请吗?
- js删除字符串中的子串
- Global and Chinese markets for airport baggage claim conveyors 2022-2028: technology, participants, trends, market size and share Research Report
- Talk about an experience of job hopping and being rejected
- 绿竹生物冲刺港股:年期内亏损超5亿 泰格医药与北京亦庄是股东
- TCP congestion control details | 2 background
- [leetcode] 14. Préfixe public le plus long
- OpenPose的使用
- Kubernetes three open interfaces first sight
- 小鹏P7雨天出事故安全气囊没有弹出 官方回应:撞击力度未达到弹出要求
猜你喜欢

寒门再出贵子:江西穷县考出了省状元,做对了什么?

Rock PI Development Notes (II): start with rock PI 4B plus (based on Ruixing micro rk3399) board and make system operation

La boîte de connexion du hub de l'unit é devient trop étroite pour se connecter

How openharmony starts FA of remote devices

Yolov5 practice: teach object detection by hand

【Leetcode】13. 罗马数字转整数

大廠面試總結大全

【征文活动】亲爱的开发者,RT-Thread社区喊你投稿啦

Interview summary of large factories

小鹏P7雨天出事故安全气囊没有弹出 官方回应:撞击力度未达到弹出要求
随机推荐
社交元宇宙平台Soul冲刺港股:年营收12.8亿 腾讯是股东
Download blender on Alibaba cloud image station
学习周刊-总第60期-2022年第25周
TCP server communication process (important)
uboot的作用和功能
有赞和腾讯云、阿里云一同摘得“中国企业云科技服务商50强”[通俗易懂]
Day 18 of leetcode dynamic planning introduction
Notice on holding a salon for young editors of scientific and Technological Journals -- the abilities and promotion strategies that young editors should have in the new era
Global and Chinese market of switching valves 2022-2028: Research Report on technology, participants, trends, market size and share
LeetCode 2. 两数相加
【Leetcode】13. 罗马数字转整数
In MySQL and Oracle, the boundary and range of between and precautions when querying the date
2、 Expansion of mock platform
PWM breathing lamp
【Leetcode】13. Roman numeral to integer
机器学习-感知机模型
Detailed explanation of @accessories annotation of Lombok plug-in
[error record] error -32000 received from application: there are no running service protocol
电脑自带软件使图片底色变为透明(抠图白底)
MOSFET器件手册关键参数解读