Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 400 Bytes

README.md

File metadata and controls

31 lines (23 loc) · 400 Bytes

183.Symmetric Tree

Description

Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).

Example1

binary tree [1,2,2,3,4,4,3] is symmetric:
    1
   / \
  2   2
 / \ / \
3  4 4  3

Example2

[1,2,2,null,3,null,3] is not:
    1
   / \
  2   2
   \   \
   3    3

From

LeetCode