Hi, i was solving this question CodeChef: Practical coding for everyone but i can only think of recursive solution . Can anyone please tell me how to solve it using DP or any other approaches.
Thanks.
Hi, i was solving this question CodeChef: Practical coding for everyone but i can only think of recursive solution . Can anyone please tell me how to solve it using DP or any other approaches.
Thanks.