pls do correction in code.
Segmentation Fault is occuring.
Bottom view of binary tree
Pls share your code by saving on ide so that I could check it…
I have edited your code… Try to submit now…
Yes it works now.
Can you explain what did you change?
I’m not able to identify the change in code.
There was just a change in closing brace, in line no 68 of your code which you have sent… Basically, you are supposed to write the for loop after the while loop ends, but you were writing the for loop within the while loop, thats why code was showing error…Rest code was perfect…