当前位置:网站首页>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.
题解:
边栏推荐
猜你喜欢
随机推荐
E. Cross Swapping (and check out deformation/good questions)
Redis -- Nosql
Based on Azuki Series: NFT Valuation Analysis Framework "DRIC"
2022 CCF中国开源大会会议通知(第四轮)
Recommend a few had better use the MySQL open source client, collection!
Basic learning of XML
全部内置函数详细认识(中篇)
Software Test Cases
Yi Gene|In-depth review: epigenetic regulation of m6A RNA methylation in brain development and disease
数据在内存中的存储
Brainstorm: Goals and
【21天学习挑战赛】直接选择排序
Scala collections
It is reported that the original Meitu executive joined Weilai mobile phone, the top product may exceed 7,000 yuan
const-modified pointer variable (detailed)
关于async\await 的理解和思考
拆分整数为2的幂次项和 → 理解多重背包问题二进制优化的核心思想
TestLink Export Use Case Transformation Tool
异地多活方法论
Introduction to the functional logic of metaForce Fosage 2.0 system development









