โ† Amazon questions

Check if tree T1 is a subset of tree T2

Filed under Amazon

Given the roots of two binary trees T1 and T2, determine if T1 is a subtree of T2, meaning that there is a node in T2 with the same structure and node values as T1.

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.