Stock span problem


My code is compiling but still giving the wrong answer.Please help.

hello @srshubhi398
increase ur array size and then try (refer constraint section for size of array).

still not working,wrong answer is displayed,no testcases are passed.

check ur updated code here->

u missed to print β€œEND” in the last

1 Like

Thanks for pointing out my mistake :slightly_smiling_face:

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.