As reported: LinkedIn IC2 Systems Infrastructure (USA), technical phone screen, Dec 2025 — after a self-introduction, a project you are proud of and OS/CS fundamentals: Symmetric Tree, then a variant of Number of Islands.
Given the root of a binary tree, return true if the tree is a mirror of itself (symmetric around its center).
This is LeetCode 101 — Symmetric Tree.
Example 1
root = [1,2,2,3,4,4,3]
Output: true
Example 2
root = [1,2,2,null,3,null,3]
Output: false
Constraints: 1 ≤ number of nodes ≤ 1000; −100 ≤ Node.val ≤ 100.
Code runner format: LeetCode's test-case format, one JSON value per line (one line per argument). The input line is the tree in level order. Implement isSymmetric(root); the harness prints the result.