https://ide.codingblocks.com/s/203296 I am getting correct answers on manual input
What is the issue with my code?
@tusharnitharwal i am sharing the correct code with you. You have to process the given array first and then work on the stack. https://ide.codingblocks.com/s/203321
but what is the problem with my code? It was giving correct answers too
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.