当前位置:网站首页>LeetCode-101. Symmetric Tree
LeetCode-101. Symmetric Tree
2022-08-10 16:03:00 【51CTO】
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).
For example, this binary tree [1,2,2,3,4,4,3] is symmetric:
But the following [1,2,2,null,3,null,3] is not:
Note:
Bonus points if you could solve it both recursively and iteratively.
题解:
边栏推荐
猜你喜欢
随机推荐
请查收 2022华为开发者大赛备赛攻略
软件测试用例篇
Taurus.MVC WebAPI 入门开发教程4:控制器方法及参数定义、获取及基础校验属性【Require】。
【服务器数据恢复】raid5崩溃导致lvm信息和VXFS文件系统损坏的数据恢复案例
一个 ABAP 工具,能打印系统里某个用户对 BSP 应用的浏览历史记录
PYSPARK ON YARN报错集合
关于async\await 的理解和思考
xlink解读
网络工程师的背包(EDC总结推荐)
Recommend a few had better use the MySQL open source client, collection!
铜锁密码库
多线程面试指南
数据治理项目成功的要点,企业培养数据要把握好关键环节
为什么中国的数字是四位一进,而西方的是三位一进?
MySQL批量更新与批量更新多条记录的不同值实现方法
怎么设计产品手册?用什么设计产品手册?
const修饰的指针变量(详解)
【FreeRTOS】13 动态内存管理
metaForce佛萨奇2.0系统开发功能逻辑介绍
关于“算力”,这篇文章值得一看








