code: https://ide.codingblocks.com/s/440540
prob: https://leetcode.com/problems/binary-tree-pruning/
Help with error
@raghav007 acoording to your logic dont you think it will not even traverse the full tree becuase you have made condtions like this:
either the first node will be 0 or 1 and from there only you will be returned back to your calling function becuase you have made check if the node val is 1 then return false else return true;