How to choose minimum elements from an array whose sum is greater or equals p?

前端 未结 0 1735
旧巷少年郎
旧巷少年郎 2021-01-02 12:29

I am dealing with a problem where I need to greedily choose some elements whose sum greater or equals to p.Here , another condition is that the difference between total sum

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