Why error is coming

output is coming on my test cases and given, but error on submitting

In the question it is given β€œIf the pile is empty, print β€œNo Code” (without the quotes).”
So before popping out elements from the stack, check that if it is empty or not.

thanks man, good and fast response of yours always appreciates me

1 Like