Tony's Log

Algorithms, Distributed System, Machine Learning

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

Swapping - is actually a useless mask to the sln of this problem. The invariance of this problem is, swapping doesn't change # of balls in each container. A further thought: actually, swapping means nothing to the final solution. We can simply do sorting and check # of balls against container capacity, one by one.

posted on 2017-05-12 12:48  Tonix  阅读(326)  评论(0编辑  收藏  举报