solulubeta
Sign in
NeetCode 150 / Trees
07.06 · Problem

Subtree of Another Tree

Easy Same Tree at every node 1 video LC 572 Pro

This problem is part of solulu Pro

Return true if root contains a subtree identical to subRoot. A subtree consists of a node and all of its descendants — it must match all the way down to the leaves.

Lifetime ₹1,999 ₹999 · Launch offer
Mark this problem as solved when you are finished.

Item 51 of 150 · updated 2026-10-12