Erasing k elements in such a way that the sum of k erased elements in an array is maximum
Answers
Answered by
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
Math,
6 months ago
Environmental Sciences,
1 year ago