当前位置:网站首页>Sword finger offer 27 Image of binary tree
Sword finger offer 27 Image of binary tree
2022-07-02 17:12:00 【anieoo】
Original link : The finger of the sword Offer 27. Image of binary tree
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;
}
};
边栏推荐
- What will you do after digital IC Verification?
- 人生的开始
- < IV & gt; H264 decode output YUV file
- 2、 Expansion of mock platform
- Changwan group rushed to Hong Kong stocks: the annual revenue was 289million, and Liu Hui had 53.46% voting rights
- Rock PI Development Notes (II): start with rock PI 4B plus (based on Ruixing micro rk3399) board and make system operation
- 13、Darknet YOLO3
- Method of C language self defining function
- How openharmony starts FA of remote devices
- Domestic relatively good OJ platform [easy to understand]
猜你喜欢
John blasting appears using default input encoding: UTF-8 loaded 1 password hash (bcrypt [blowfish 32/64 x3])
剑指 Offer 21. 调整数组顺序使奇数位于偶数前面
Yolov5 practice: teach object detection by hand
TCP congestion control details | 2 background
[error record] error -32000 received from application: there are no running service protocol
871. 最低加油次数
深度之眼(三)——矩阵的行列式
Xiaopeng P7 had an accident on rainy days, and the airbag did not pop up. Official response: the impact strength did not meet the ejection requirements
What if the default browser cannot be set?
Changwan group rushed to Hong Kong stocks: the annual revenue was 289million, and Liu Hui had 53.46% voting rights
随机推荐
Does digicert SSL certificate support Chinese domain name application?
System Verilog实现优先级仲裁器
Seal Library - installation and introduction
ThreadLocal
uboot的作用和功能
L'explosion de John utilise l'encodage d'entrée par défaut: UTF - 8 Loaded 1 password Hash (bcrypt [blowfish 32 / 64 X3])
Deep learning image data automatic annotation [easy to understand]
只是巧合?苹果iOS16的神秘技术竟然与中国企业5年前产品一致!
博客主题 “Text“ 夏日清新特别版
你想要的宏基因组-微生物组知识全在这(2022.7)
P6774 [noi2020] tears in the era (block)
13、Darknet YOLO3
剑指 Offer 27. 二叉树的镜像
Green bamboo biological sprint Hong Kong stocks: loss of more than 500million during the year, tiger medicine and Beijing Yizhuang are shareholders
Just a coincidence? The mysterious technology of apple ios16 is even consistent with the products of Chinese enterprises five years ago!
< IV & gt; H264 decode output YUV file
[cloud native] briefly talk about the understanding of flume, a massive data collection component
LeetCode 5. Longest Palindromic Substring
vscode设置删除行快捷键[通俗易懂]
TCP congestion control details | 2 background