Salesforce

Anonymous User
2412
Oct 20, 2023
Nov 05, 2023

Swap the zeros with the closest non zero leaf value. How would one solve this question?

    2                                       2   
   /  \                                    /  \ 
 0      0            ->                    1   5
/      /  \                               /    /\
1     0    5                             0    6  0
      \                                       \
	   6                                       0
Comments (5)