How to find the maximum sum of an array with skipping penalty

后端 未结 0 644
天命终不由人
天命终不由人 2021-02-11 17:31

We can skip some elements in an array. If we skip one element, there’s no penalty. If we consecutively skip 2 or 3 elements, there’s a -20 penalty. And we cannot consecutively s

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