Why my code is not showing correct output ?
Level order- zigzag
hey i just wanted to know have u refered this code from any coding blocks video???
i feel there is a problem in the logic!!
but if u consulted from prateek bhaiyas video please tell me the title I`ll debug with that mindset.
because i know of a stack based approach jiska logic is quite simple
yes, I have applied the same logic of printing all k level nodes from binary tree videos with required modifications.
bro please read this
i dont think ur approach will not work ( i have provided the code )
i repeat again if u have seen some CB video which has ur code please tell me the title