Sink Zeroes in Binary Tree
Sink zeroes down in a binary tree, swapping only values between nodes, ensuring zero nodes are either leaf nodes or have subtrees containing only zero nodes.
Asked at:
Meta
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Late August, 2024
Meta
Senior
Sink zeroes down in a binary tree, swapping only values between nodes, ensuring zero nodes are either leaf nodes or have subtrees containing only zero nodes.
Hello Interview Premium
Your account is free and you can post anonymously if you choose.