Description
1 | Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). |
Recursion
1 | # class TreeNode |
Iterative
1 | # class TreeNode |
1 | Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). |
1 | # class TreeNode |
1 | # class TreeNode |