Tag: 572 Subtree of Another Tree

  • LeetCode: 572 Subtree of Another Tree

    Given the roots of two binary trees root and subRoot, write a function to determine if subRoot is a subtree of root. A subtree of a binary tree T is a tree that consists of a node in T and all of this node’s descendants. The tree T could also…