当前位置:网站首页>LeetCode-101. Symmetric Tree
LeetCode-101. Symmetric Tree
2022-08-10 15:36: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.
题解:
边栏推荐
猜你喜欢
随机推荐
[Letter from Wu Enda] The development of reinforcement learning!
拆分整数为2的幂次项和 → 理解多重背包问题二进制优化的核心思想
pm2 static file service
简述 Mock 接口测试
fastposter v2.9.1 programmer must-have poster generator
const修饰的指针变量(详解)
fastposter v2.9.1 程序员必备海报生成器
MySQL-创建、修改和删除表
华为云DevCloud获信通院首批云原生技术架构成熟度评估的最高级认证
Zotero 开源文献管理工具
An ABAP tool that can print the browsing history of a user in the system for BSP applications
Data Types and Integer Storage
秒杀项目收获
Detailed understanding of anonymous functions and all built-in functions (Part 2)
xlink解读
【21天学习挑战赛】折半查找
腾讯云TDP-对象存储COS产品新用户福利
【教程】HuggingFace的Optimum组件已支持加速Graphcore和英特尔Habana芯片
IPC:Interrupts and Signals
storage of data in memory








