Given an array of N elements divide the elements into K segments such that the sum of minimum element of each segment is maximum Sample Input : N=4 K=2
You should know by now that you can't just dump your assignment without posting some attempt at solving the problem yourself.
Just for reference, in case of "delete and run away"
Given an array of N elements divide the elements into K segments such that the sum of minimum element of each segment is maximum Sample Input : N=4 K=2