Please explain the sample testcase given

also can you please tell me how to take input

@aryanv Please refer this Bottom view of binary tree one test case fail

I have explained a case here.

1 Like

@pratyush63 yeah ,i understand it now … how do i take input? do i have to create a queue and proceed like we do in bfs traversal?

Yes you have to proceed with BFS traversal using a queue.

1 Like