Max Sum K-Partition

what’s wrong with my code.
all the test cases are failed.

Hey @chaudhary.ravi0057
This is one of the most complex questions on the portal
I would recommend going through the solution and moving on instead of spending more time on this https://ideone.com/ZaVu1v

If your doubt is resolved please mark it as closed.

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.

Hey @chaudhary.ravi0057
How can I help you ?