please help me find the problem in the code.
Rather than connecting the nextright pointer, I have directly printed using level order traversal, but giving WA.
Connect same level nodes
hello @abhir26
in input file of test case , n is not mentioned ,
only level order is mentioned so contruct ur tree using that level order only (i.e dont use array)
and then try to submit, it should work
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.