LeetCode
Binary Tree Pruning
Click
here
for an explanation.