当前位置:网站首页>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.
题解:
边栏推荐
猜你喜欢

fastposter v2.9.1 programmer must-have poster generator

Yi Gene|In-depth review: epigenetic regulation of m6A RNA methylation in brain development and disease

面了个腾讯25k+出来的,他让我见识到什么基础的天花板

Containerization | Scheduled Backups in S3

APP automation testing with Uiautomator2

An ABAP tool that can print the browsing history of a user in the system for BSP applications

电商秒杀项目收获(二)

二叉树详解

一个 ABAP 工具,能打印系统里某个用户对 BSP 应用的浏览历史记录

【FreeRTOS】13 动态内存管理
随机推荐
2025年推出 奥迪透露将推出大型SUV产品
拆分整数为2的幂次项和 → 理解多重背包问题二进制优化的核心思想
storage of data in memory
嵌入式开发:嵌入式基础——使用指针数组映射外设
Chapter one module of the re module,
IPC:Interrupts and Signals
华为云DevCloud获信通院首批云原生技术架构成熟度评估的最高级认证
Reids 源码导读
Containerization | Scheduled Backups in S3
容器化 | 在 S3 实现定时备份
Custom picker scroll selector style
【21天学习挑战赛】折半查找
Spike project harvest
颜色空间
26、压缩及解压缩命令
Data Types and Integer Storage
LeetCode-337. House Robber III
5G NR MIB详解
【FreeRTOS】13 动态内存管理
LeetCode-876. Middle of the Linked List