In the video of Minimum Steps Bottom Up [Code]
https://online.codingblocks.com/app/player/210768/content/200550/6317/lecture
Shouldn’t the output for number 5 be 3 instead of 4
i.e 5->4->2->1
3 steps
In the video of Minimum Steps Bottom Up [Code]
https://online.codingblocks.com/app/player/210768/content/200550/6317/lecture
Shouldn’t the output for number 5 be 3 instead of 4
i.e 5->4->2->1
3 steps
yes there is a big mistake in this code
i just saw
we have to check i instead of n
if( i%2 == 0)
opt1 = dp[i/2];
if( i%3 == 0)
opt2 = dp[i/3];
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.