Daily Temperatures Leetcode problem

problem link:


Don’t know why my code giving runtime error please suggest the corrections:
my code>>>>

hello @coderajay03
check now->

first u need to check wheter stack is empty or not and then any other condition.

bhaiya is back !!! thankyou bhaiya

bhaiya the solution above I coded is much slower than the others could you please suggest any alternative method with good time run?

time complexity wise it is the best solution.
its just way of implementation that is creating difference.
u can check others implementation if u want

okay bhaiya got it thankyou!!

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.