Live Batches
Masterclasses
Menu
Free Courses
Account
Login / Sign Up
Problem Submissions Solution

Check if Tree is Symmetric

Difficulty: Medium

Acceptance: 74.98%

Points: 30.00

You are given the root of a **binary tree**. Your task is to determine whether the tree is **symmetric around its center**. A binary tree is considered **symmetric** if: - The **left subtree** is a mirror image of the **right subtree**. - Corresponding nodes on both sides have the **same values**. - The structure of both subtrees is also mirrored.

Topics

Companies

Articles

Examples:
Constraints:
  • - **0 = Number of nodes = 105**
  • - **-10? = Node.data = 10?**
Companies:
Atlassian ServiceNow
Topics:
Tree Traversal Binary Tree
Locked Content
Access Restricted: Please Login to access the code editor and test cases.