Stock span-stacks,queue,deque

https://ide.geeksforgeeks.org/xlOInvflQI
same code as class showing tle

Have debugged your code here, now it’s giving 100% result

i think this is giving wrong output

Have submitted it on Hackerblocks giving 100% result. Check again.

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.