Minimum Price - Preferred solution in c++ or atleast the algorithm

后端 未结 0 1274
独厮守ぢ
独厮守ぢ 2020-11-21 19:46

There are N stones lying in a line. The cost and type of the ith stone is a[i] units and i respectively. You are initially having zero stones and you wish to collect all the

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