Dynamic progrraming (ipl)

sir,have you any other approch to solve this question without seeing SUPW quetion…
i did not understand how it is opposite to SUPW,because they have some similiarity between them, i.e in both question we choose one or two elementt in every subsequence of 3 elemet…

Hi,

In supw question you have to minimize the number of minutes.
In ipl you have to maximise the earnings.

So, max=total sum-min earning. Just calculate the min earning and subtract from total.

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.