Https://techbomb.net/max-sum-codevita-solution-2020/

how to solve this problem give me approach and also provide code I think this a dp problem but I’m not able to solve it plzz help me and reply fast

@ajayrajsingh_817
you can try this pseudo code

provide me code in c++ is this question is solve using dp concept

plzz reply and solve my doubt

@ajayrajsingh_817
share your code and approach

@aa1 Hello, kindly check my post(Link: Dynamic Programming Question) for the same question. I’ve also provided a working solution to the above problem(not mine) which got accepted. Can you kindly tell me what logic it uses and why it works? Thanks in advance.