Search
⌘K
Get Premium
Leetcode 572. Subtree of Another Tree
Check whether subRoot appears as an exact subtree of root by finding some node in root whose entire descendant structure and node values match subRoot. This requires traversing root and comparing subtree structures/values at candidate nodes.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.