algorithm - pour water into bottle

前端 未结 0 572
忘掉有多难
忘掉有多难 2021-02-19 10:33

Say I have N cup of waters, each cup with different volume 100ml, 250ml, 355ml, etc. and I have M bottles, each has unlimited volume.

I want to pour all water into the M

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