当前位置:网站首页>Niuke-top101-bm33
Niuke-top101-bm33
2022-07-21 05:47:00 【A fish that eats cats】
import java.util.*;
/* * public class TreeNode { * int val = 0; * TreeNode left = null; * TreeNode right = null; * public TreeNode(int val) { * this.val = val; * } * } */
public class Solution {
/** * The class name in the code 、 Method name 、 The parameter name has been specified , Do not modify , Return the value specified by the method directly * * * @param pRoot TreeNode class * @return TreeNode class */
public TreeNode Mirror (TreeNode pRoot) {
// write code here
if(pRoot == null){
return null;
}
TreeNode left = Mirror(pRoot.left);
TreeNode right = Mirror(pRoot.right);
pRoot.left = right;
pRoot.right = left;
return pRoot;
}
}
边栏推荐
- 【考研词汇训练营】Day 8 —— complete,traditional,extra,afford,professional,require
- 利用yaml定义卷积网络【附代码】
- Qu'est - ce qu'une pile?
- 大佬们,请问 PostgreSQL CDC ,PostgreSQL 必须配置逻辑复制吗? 目前部署的
- 【码蹄集新手村600题】整除幸运数
- 在线教育项目整合Swagger
- 旋转框目标检测mmrotate v0.3.1 训练HRSC2016数据集(二)
- linux服务器PostgreSQL数据库自动备份
- Spark efficient data analysis 04. RRD creation
- SPSS kmeans cluster analysis operation
猜你喜欢
永久挂载镜像步骤
[hbuilder runs to the problem that Mumu simulator cannot install the base, and it has been stuck in the installation base...]
Girls who have just started the software testing industry can get a monthly salary of more than 10000 to solve the mystery of the fraud
字符串函数的模拟实现(上)
PicGo配置阿里云oss
Webdynpro development-03 create a Webdynpro material code query page
Introduction to open source lightweight workflow workflowcore
Try to understand the essence of low code platform design from another angle
Linear table with chained storage structure
【C】文件操作进阶知识
随机推荐
Girls who have just started the software testing industry can get a monthly salary of more than 10000 to solve the mystery of the fraud
R package simputation for interpolating missing values in R language
Differentiation in R language
gis设备在国土资源管理中有何作用?
Add a new field at the specified position in the MySQL table
PHP login and exit login logic
Qu'est - ce qu'une pile?
C Entry series (XXV) -- Interface
或许是 WebGIS 下一代的数据规范 - OGC API 系列
The best method of converting string to date in R language
Application cases under the digital twin of industry 4.0
Uniapp uses uni The solution to the request error {"errmsg": "request:fail abort statuscode:-1"}
Try to understand the essence of low code platform design from another angle
什么是栈?
redis 'module' 不是内部或外部命令?
相关系数矩阵可视化
牛客-TOP101-BM33
Ggplot2 add formula label
Linear table with chained storage structure
Object.defineProperty使用