← Google questions
CodingReported in a candidate post, Mar 2025

Size of the largest identical binary tree

Filed under Google

Given two binary trees, find the size (number of nodes) of the largest subtree in the first tree that is identical in structure and node values to a subtree in the second tree.

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 Google questions

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