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 as subRoot, and false otherwise.
A subtree of a binary tree tree is a tree that consists of a node in tree and all of that node's descendants. The tree tree can also be considered a subtree of itself.
Input / output
root: TreeNode, subRoot: TreeNode (represented in level-order array form in test fixtures)booleanroot is in the range [1, 2000]subRoot is in the range [1, 1000]-10^4 <= root.val, subRoot.val <= 10^4Can you solve this in O(m + n) time by serializing both trees with explicit null markers and running KMP or rolling-hash substring search?