← Amazon questions

Identical Trees and Subtree Check

Filed under Amazon

Given the roots of two binary trees root and subTree, write a helper function to determine if two binary trees are identical in structure and node values. Then, use that logic to check whether subTree…

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.