0

I have been given been an array arr and the need is to maximize arr[i]*i. A simple solution given at https://www.geeksforgeeks.org/maximize-sum-arrii is to sort the array and then find the sum. But, how shall I confirm the fact that the resultant sum will be maximum over all the possible answers.

asn
  • 2,408
  • 5
  • 23
  • 37

0 Answers0