Check Symmetric Tree
BINARY TREE
RECURSION
Problem
Given the root of a binary tree, check whether it is a mirror of itself (i.e., symmetric around its center).
Examples
isSymmetric([1,2,2,3,null,null,3]) // returns true
Loading...
1
2
3
0
2
0
3
Given the root of a binary tree, check whether it is a mirror of itself (i.e., symmetric around its center).
isSymmetric([1,2,2,3,null,null,3]) // returns true