this is the code can you please help me correct it
Not able to find the condition for -1
Hey @prerna_gupta31 actually this question will be done using stack and not queue. I am attaching a editorial so that you can read and get to know how this problem runs (Click here for editorial), also here’s the dry run by me which you can see to get an idea, though if you need you can also ask for that.
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.
