For Tree Bottom View, Provide the Complete Code(With User Input N Nodes) Please.
I’ve Unlocked Bcoz I’m not able to Create a Tree out of Given Input.
I Mean, Suppose Input is :- 1 2 3 4 -1 -1 -1 and so on, then How to Understand Who is Whose Children.
Prateek Sir Showed an Example Where Input Was Having -1’s in Between but in Few Questions, all -1 's are at the End.
I’m Able to Understand the Question, It’s Just That I’m not able to Build the Tree according to Test Cases, So My Code is not Accepted.
