Maximise sum of i*a[i] in a array where we can only do array rotation
Answers
Answered by
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
Social Sciences,
6 months ago
Biology,
6 months ago
Chemistry,
6 months ago
Business Studies,
1 year ago
Math,
1 year ago
Chemistry,
1 year ago