Given the roots of trees root and subRoot, return true if some node of root (together with all its descendants) is structurally identical to subRoot, with equal values.
Input
root (null = missing child)subRootOutput: true or false.
3 4 5 1 2 4 1 2
true
3 4 5 1 2 null null null null 0 4 1 2
false
The candidate subtree at 4 has an extra node 0 under 2.
Run your code against the sample tests, or Submit to run the full suite.