I did it just like the stock span problem…I stored the index of the next smalest price checkpoint index and then filled the petrol to go to onlly that check point from there…But getting wrong answer in last 2 cases…
Getting wring answer in last 2 test cases
please share the code for same
so that i can debug it help u better
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.
Hey my doubt is not cleared…I raised it 7days ago…and I just asked for some cases for which I am getting wring answer…and u just said to share link of code…but u didn’t did any reply after that
i am sorry
i just skipped the doubt
@chhavibansal I know how to solve stock span problem…I want some testcases for which I am getting wrong answer…
yeh jo code dia h stock span ka nhi h
share to correct code
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.