README ¶ < Previous Next > 101. Symmetric Tree (Easy) 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: 1 / \ 2 2 / \ / \ 3 4 4 3 But the following [1,2,2,null,3,null,3] is not: 1 / \ 2 2 \ \ 3 3 Follow up: Solve it both recursively and iteratively. Related Topics [Tree] [Depth-first Search] [Breadth-first Search] Expand ▾ Collapse ▴ Documentation ¶ Index ¶ type TreeNode Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type TreeNode ¶ type TreeNode = kit.TreeNode TreeNode - Definition for a binary tree node. Source Files ¶ View all Source files symmetric_tree.go Click to show internal directories. Click to hide internal directories.