โ† Amazon questions

Subtree Verification

Filed under Amazon

Given two binary trees T1 and T2, determine if T2 is a subtree of T1. Return true if T2 exists within T1, otherwise false (or -1 as requested).

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.