当前位置:网站首页>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;
}
};边栏推荐
- 2、 Expansion of mock platform
- [cloud native] briefly talk about the understanding of flume, a massive data collection component
- 配置基于接口的ARP表项限制和端口安全(限制用户私自接入傻瓜交换机或非法主机接入)
- 绿竹生物冲刺港股:年期内亏损超5亿 泰格医药与北京亦庄是股东
- Green bamboo biological sprint Hong Kong stocks: loss of more than 500million during the year, tiger medicine and Beijing Yizhuang are shareholders
- 相信自己,这次一把搞定JVM面试
- Executive engine module of high performance data warehouse practice based on Impala
- 电脑自带软件使图片底色变为透明(抠图白底)
- Hard core! One configuration center for 8 classes!
- < IV & gt; H264 decode output YUV file
猜你喜欢

只是巧合?苹果iOS16的神秘技术竟然与中国企业5年前产品一致!

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

深度之眼(二)——矩阵及其基本运算
![[cloud native] briefly talk about the understanding of flume, a massive data collection component](/img/2d/8c4769e97fb84e98eafb7069551341.png)
[cloud native] briefly talk about the understanding of flume, a massive data collection component

Amazon cloud technology community builder application window opens

移动应用性能工具探索之路

剑指 Offer 21. 调整数组顺序使奇数位于偶数前面

智能垃圾桶(五)——点亮OLED

Digital IC hand tearing code -- voting device

PhD Debate-11 预告 | 回顾与展望神经网络的后门攻击与防御
随机推荐
【Leetcode】14. Longest Common Prefix
Usage of sprintf() function in C language
Rock PI Development Notes (II): start with rock PI 4B plus (based on Ruixing micro rk3399) board and make system operation
A few lines of code to complete RPC service registration and discovery
Tech talk activity preview | building intelligent visual products based on Amazon kVs
智能垃圾桶(五)——点亮OLED
Day 18 of leetcode dynamic planning introduction
Easy language ABCD sort
【Leetcode】13. Roman numeral to integer
伟立控股港交所上市:市值5亿港元 为湖北贡献一个IPO
LSF basic command
远程办公对我们的各方面影响心得 | 社区征文
Serial port controls steering gear rotation
DigiCert SSL证书支持中文域名申请吗?
871. 最低加油次数
OpenHarmony如何启动远程设备的FA
Masa framework - DDD design (1)
Youzan won the "top 50 Chinese enterprise cloud technology service providers" together with Tencent cloud and Alibaba cloud [easy to understand]
2322. Remove the minimum fraction of edges from the tree (XOR and & Simulation)
社交元宇宙平台Soul冲刺港股:年营收12.8亿 腾讯是股东