← Amazon questions

Check if two trees are isomorphic

Filed under Amazon

Two binary trees are considered isomorphic if they can be obtained by a series of flips, where each flip swaps the left and right child of a node. Given the roots of two binary trees, determine if…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.