Leetcode 0572. Subtree of Another Tree
Posted on Sun 15 December 2024 in Leetcode • Tagged with tree-serialization, binary-tree
Question Link : https://leetcode.com/problems/subtree-of-another-tree/
Difficulty: Easy
Premium: False
Question
Given the roots of two binary trees root and subRoot, return true if there is a subtree of root with the same structure and node values of subRoot and false otherwise. A subtree of a binary tree tree …
Continue reading