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

后端 未结 0 1698
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-11 17:50

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

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