Search
⌘K

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.

Comments

Your account is free and you can post anonymously if you choose.