62382 | CodeChef

Can anyone provide me any hints? Not the solution. I am trying to learn dp … So if anyone can provide me some hints or explain how to approach or think of this problem then it would be helpful. Thanks in advance

This is a Good question

can someone give a hint

Can you provide me some hints?