Apporoach Of Getting Solution Is Not Clear

I am Not getting approach of solution there are couple of doubt in the i=even how we come to know that it is always the case that i+1(which is decreasing case according to bottom up dp) will be always cost me more than i th case why same case was not applicable for the odd condition also ?

Honestly i would say you shall use memoization if you face problem in bottom-up DP.
Simply, make calls based on given conditions.
Get the best answer.
Memoize it!

I understand your doubt, the reason is intuitive. Its very difficult to explain in writing. I would recommend you to watch video twice thrice. I too did same :stuck_out_tongue:

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.