Sink zeroes in a Binary Tree
Anonymous User
2560

image

Source of image -> https://massivealgorithms.blogspot.com/2019/02/sink-zeros-in-binary-tree.html

Given a binary tree containing many zero nodes, sink nodes having zero value to the bottom of the sub-tree rooted at that node. In other words, the output binary tree should not contain any node having zero value that is parent of node having non-zero value.

Comments (7)