The o/p is wrong in video. if you see the expected o/p what was told at start of video is diff with the actual o/p

the o/p is wrong in video. if you see the expected o/p what was told at start of video when theoritically it was done is diff with the actual o/p.
just see when the ques is explained then at level 1 the o/p should be 3,8 (first 3 then 8) as vertical o/p as it should be.
but when the o/p came at last part of video after execution the o/p is 8,3 which is not correct as we do the vertical order print.

please provide the correct code of this question

@Rahulkr102 hey here is correct code for that :https://ide.codingblocks.com/s/76204

i am not able to spot the difference b/w your code and video code… please tell me whats the error in the videos’s code…please tell about the logic and what is diffrernce b/w the code in this video and urs… code can be found out anywhere but i need approach…

@Rahulkr102 hey iske do method hai ek recursion se ek level order se to kaun sa use krna hai ye ouput pr depend krta hai to mene level order use kia hai ,ap koi bhi use kr skte ho acc to output.Hope you get it.

https://ide.codingblocks.com/s/220615 this is your code exactly and the solution you gave me of your code in that you have build the tree in the diff order thats why you got the answer as expected ! kindly build the tree as done in this video and i have rectified and build the tree as done in the video and added comments also… check it in the link provided then give me the solution because you are doing the same as done in the video and getting correct o/p bcoz you have build the tree differntly!

aapne tree question se alg build kara tha jo solution diya tha mujhe…isliye answer expected aya… kindly build the tree as given in the question… i have done that for you check above link and getting the same wrong answer asthat of video

@Rahulkr102 hn bro iska input method dekho woh alag hai,hme qstn ke hisaab se lena pdta hai input ,aap ek bar code dry run kro input wala.

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.