MongoDB Associate Developer Interview Question 2022 November | Trees | on-campus

Question · Posted Jun 2026

Question 1: Symmetric Tree Problem Statement Given the root of a binary tree, check whether it is a mirror of itself (i.e., symmetric around its center). Return true if the tree is symmetric, false otherwise. Constraints The number of nodes in the tree is in the range [1, 1000] -100 <= Node.val <= 100 Examples Example 1: Input: root = [1, 2, 2, 3, 4, 4, 3] Output: true Explanation 1: The tree is symmetric: root=1, left subtree and right ...

The full answer & interview discussion are available to premium members.

Log in Create a free account