当前位置:网站首页>剑指 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;
}
};边栏推荐
- [cloud native] briefly talk about the understanding of flume, a massive data collection component
- [fluent] dart data type list set type (define set | initialize | generic usage | add elements after initialization | set generation function | set traversal)
- LeetCode 2. 两数相加
- pwm呼吸燈
- 串口控制舵机转动
- Global and Chinese market of switching valves 2022-2028: Research Report on technology, participants, trends, market size and share
- 如何与博格华纳BorgWarner通过EDI传输业务数据?
- DGraph: 大规模动态图数据集
- VMware install win10 image
- 入行数字IC验证后会做些什么?
猜你喜欢

Machine learning perceptron model

Go zero micro service practical series (VIII. How to handle tens of thousands of order requests per second)

Understand one article: four types of data index system

DigiCert SSL证书支持中文域名申请吗?
![[North Asia data recovery] data recovery case of raid crash caused by hard disk disconnection during data synchronization of hot spare disk of RAID5 disk array](/img/51/f9c1eed37794db8c8d0eefd60b9e3d.jpg)
[North Asia data recovery] data recovery case of raid crash caused by hard disk disconnection during data synchronization of hot spare disk of RAID5 disk array

你想要的宏基因组-微生物组知识全在这(2022.7)

配置基于接口的ARP表项限制和端口安全(限制用户私自接入傻瓜交换机或非法主机接入)

OpenPose的使用

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

Résumé de l'entrevue de Dachang Daquan
随机推荐
Seal Library - installation and introduction
Global and Chinese market of switching valves 2022-2028: Research Report on technology, participants, trends, market size and share
Global and Chinese markets for airport baggage claim conveyors 2022-2028: technology, participants, trends, market size and share Research Report
伟立控股港交所上市:市值5亿港元 为湖北贡献一个IPO
Understand one article: four types of data index system
【Leetcode】14. 最長公共前綴
pwm呼吸灯
A week of short video platform 30W exposure, small magic push helps physical businesses turn losses into profits
LeetCode 5. 最长回文子串
LeetCode 3. Longest substring without duplicate characters
PWM breathing lamp
有赞和腾讯云、阿里云一同摘得“中国企业云科技服务商50强”[通俗易懂]
机器学习-感知机模型
LeetCode 1. 两数之和
Global and Chinese market of desktop hot melt equipment 2022-2028: Research Report on technology, participants, trends, market size and share
亚马逊云科技 Community Builder 申请窗口开启
只是巧合?苹果iOS16的神秘技术竟然与中国企业5年前产品一致!
2322. 从树中删除边的最小分数(异或和&模拟)
LeetCode 2. 两数相加
七张图,学会做有价值的经营分析