Computer Science, asked by wwwanuragverma1140, 1 year ago

Maximise sum of i*a[i] in a array where we can only do array rotation

Answers

Answered by hinaguptagracy
0

Explanation:

After doing one clockwise rotation of the array, it would be modified to {2,3,4,5,6,1} and sum of index-element-products in this case is 55

Similar questions