Given two binary trees, root1 and root2, return true if root2 is a subtree of root1, meaning there is a node in root1 with the same structure and node values as root2.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.