Tree top view binary tree

giving third test case as run time error what is the error sir

20 40 60 204 -1 92 65 68 -1 21 -1 -1 85 24 -1 -1 -1 -1 -1
check ur code for the above test case.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.