← Morgan Stanley questions
CodingEasy

Check if T2 is a subtree of T1

Filed under Morgan Stanley

Determine if a binary tree T2 is a subtree of a much larger binary tree T1. T2 has hundreds of nodes, while T1 contains millions of nodes.

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 Morgan Stanley questions

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