Maximum product of sum of two array elements with their distance

后端 未结 0 576
旧巷少年郎
旧巷少年郎 2021-02-05 17:44

Given an array of positive numbers I need to find the maximum of the expression (j - i)*(a[j] + a[i]) where j and i are array indices. I tried using divide and conq

相关标签:
回答
  • 消灭零回复
提交回复
热议问题