Playing with cards (In stack)

This is my coden, in online IDE it is running perfectly but it is failing in test cases

Hi @Legendankit
in this u were getting run error since when input > 100, ur code try to access value out of bounds.


i hv updated ur code(the size of arrays,etc)
refer to dis for more help.
hope dis helps.

Thanks for the code and tq for letting me know my error