Computer Science, asked by jensonjose9524, 1 year ago

Erasing k elements in such a way that the sum of k erased elements in an array is maximum

Answers

Answered by VedantJain
0

First, sort the array. Then erase K elements from the array.

I can't write the code as you have not provided to me additional information about the method you are using to erase the elements.

Similar questions