Skip to content

Latest commit

 

History

History

Maximize the sum of index by muliplying the element at the index

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Given an array of N integers. You are allowed to rearrange the element of the array. The task is to find the maximum value of Σarr[i]*i, where i = 0, 1, 2,…., n – 1.