https://ide.codingblocks.com/s/437033,
please check my code , what is problem in this.
LEVEL ORDER ZIGZAG
hello @CODER_JATIN
if(i%2!=1)
{
cout<<f->data<<" ";
q.pop();
}
else if(i%2==0)
{
s.push(f);
q.pop();
}
these are same conditions.
BHAIYA , MAI i ko check kar rha hu , agar i even hai to front ko stack mai bhi push kr rha hu
hahah, condition same daaldi thi , ab chal gya
bhaiya , approach sahi hai vese?
ha. . . . . . . . . . . . .
okay bhaiya , thank you:)
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.