Given the root of a binary tree, return the same tree after pruning all subtrees that do not contain a
A subtree of a node node consists of node together with all of its descendants.
Constraints:
The number of nodes in the tree is in the range
Node.val is either
Given the root of a binary tree, return the same tree after pruning all subtrees that do not contain a
A subtree of a node node consists of node together with all of its descendants.
Constraints:
The number of nodes in the tree is in the range
Node.val is either