当前位置:网站首页>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;
}
};边栏推荐
- DGraph: 大规模动态图数据集
- 电脑自带软件使图片底色变为透明(抠图白底)
- PWM controlled steering gear
- System Verilog implements priority arbiter
- 寒门再出贵子:江西穷县考出了省状元,做对了什么?
- Use of openpose
- Use the API port of the bridge of knowledge and action to provide resources for partners to access
- TCP congestion control details | 2 background
- 入行数字IC验证后会做些什么?
- PWM breathing lamp
猜你喜欢

PhD Debate-11 预告 | 回顾与展望神经网络的后门攻击与防御

What if the default browser cannot be set?

A few lines of code to complete RPC service registration and discovery

How to transfer business data with BorgWarner through EDI?

Cell: Tsinghua Chenggong group revealed an odor of skin flora. Volatiles promote flavivirus to infect the host and attract mosquitoes

Linux Installation PostgreSQL + Patroni cluster problem

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

电脑自带软件使图片底色变为透明(抠图白底)

畅玩集团冲刺港股:年营收2.89亿 刘辉有53.46%投票权

【Leetcode】13. 罗马数字转整数
随机推荐
GeoServer:发布PostGIS数据源
871. 最低加油次数
一年頂十年
P6774 [NOI2020] 时代的眼泪(分块)
剑指 Offer 26. 树的子结构
几行代码搞定RPC服务注册和发现
Soul, a social meta universe platform, rushed to Hong Kong stocks: Tencent is a shareholder with an annual revenue of 1.28 billion
Masa framework - DDD design (1)
Believe in yourself and finish the JVM interview this time
关于举办科技期刊青年编辑沙龙——新时代青年编辑应具备的能力及提升策略的通知...
LeetCode 5. Longest Palindromic Substring
基于多元时间序列对高考预测分析案例
uboot的作用和功能
[leetcode] 14. Préfixe public le plus long
John blasting appears using default input encoding: UTF-8 loaded 1 password hash (bcrypt [blowfish 32/64 x3])
Un an à dix ans
【Leetcode】14. 最長公共前綴
博客主题 “Text“ 夏日清新特别版
酒仙网IPO被终止:曾拟募资10亿 红杉与东方富海是股东
What is generics- Introduction to generics