Skip to content

Latest commit

 

History

History
1 lines (1 loc) · 174 Bytes

File metadata and controls

1 lines (1 loc) · 174 Bytes

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.