Symmetric Tree

Easy · Trees · about 10 minutes

Asked at Bloomberg, Meta, Microsoft, Amazon, Google, LinkedIn, Grammarly, Quora.

Decide whether a binary tree looks the same when flipped left to right, i.e. whether its left and right halves mirror each other.

Related guides