In this video at 7.01 min a dry run min(infity,2,3) it will give the 2 but how the answer is coming 3.
Minimum steps top down
There was a slight mistake. It must be min(infinity,2+1,3+1)…so answer will come as 3. Check line 23 and 26 of the code…1 was added there.
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.