当前位置:网站首页>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年软考复习笔记一

虚拟电厂可视化大屏,深挖痛点精准减碳

困扰已久的一个微信bug

storage of data in memory

WinUI 3 Fundamentals 5小时教学视频

社区动态——恭喜海豚调度中国区用户组新晋 9 枚“社群管理员”

fastposter v2.9.1 programmer must-have poster generator

Software Test Cases

数据治理项目成功的要点,企业培养数据要把握好关键环节

Introduction to the functional logic of metaForce Fosage 2.0 system development
随机推荐
一个 ABAP Development Tool 自定义 service endpoint 的测试工具
【服务器数据恢复】raid5崩溃导致lvm信息和VXFS文件系统损坏的数据恢复案例
MySQL命令行导出导入数据库
头脑风暴:目标和
哈希表应用:只出现一次的数字
异地多活方法论
Mobileye携手极氪通过OTA升级开启高级驾驶辅助新篇章
易观千帆银行用户体验中心:聚焦银行APP用户体验
$'\r': command not found
Exchange Online审计和监控
Ameya360成为稳先微电子中国区域授权代理!
IPC:Interrupts and Signals
A test tool for ABAP Development Tool custom service endpoint
Software Test Cases
JS 从零手写实现一个bind方法
Containerization | Scheduled Backups in S3
数据类型与整型存储
【21天学习挑战赛】直接选择排序
Parse the value of uuid using ABAP regular expressions
Colocate Join :ClickHouse的一种高性能分布式join查询模型