find minimal K non-consecutive entries (dynamic programming problem)

后端 未结 0 705
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-28 06:57

My question is exactly the same as this, I tried to incorporate K in my code like this:

int minimal_k(vector& nums, int i, int k)
{
    if (i == 0)         


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