Strange error in the code, pls help
Strange error in Top down code of Min steps to one DP Problem
Hey @anshufirefox i am really sorry for late reply, was solving multiple doubts at the same time. Have debugged your code here, so if you have any issues in it then feel free to ask
Yeah, we have a similar solution, yours is cleaner. I think I found my mistake. I was giving more than 2 arguments in the std::min function. Having changed that, my solution has started working. Thanks a lot.
Yes this may also be a reason as min only takes 2 argument but if you want minimum of three then what you can do is find minimum of 1 & 2 whatever the minimu value is then you can find minimum of 3 value with the calculated minimum value of 1 & 2.
Yeah, Lesson learnt. Thank you so much for the help. Please help me in closing this thread as I am unable to mark it as resolved due to some technical glitch in my profile. This button does not work in my account.
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.