Algo++ : tree bottom view

In the given example , output should be 4 2 5 6 3 . because 5 and 6 will be present at same height so both should be included in bottom view and going from left to right 5 should be printed before 6

@amandahiya.3572
You are right about 5 and 6 being at the same position in the structure of the tree , however we only print the one which comes after , that is , the node that was created afterwards. If it so happens then we only print the node which is from the right subtree , 6 in this case.
Hence the output should be :
4 2 6 3