GO Solution For UVa 102 - Ecological Bin Packing. In this post we will see how we can solve this challenge in GoLang for UVa Online Judge.

Problem Description

Bin packing, or the placement of objects of certain weights into different bins subject to certain con- straints, is an historically interesting problem. Some bin packing problems are NP-complete but are amenable to dynamic programming solutions or to approximately optimal heuristic solutions.

In t

...

You can find the full details of the problem Ecological Bin Packing at UVa Online Judge

Sample Input

1 2 3 4 5 6 7 8 9
5 10 5 20 10 5 10 20 10

Sample Output

BCG 30
CBG 50

Solution: Please check the main.go snippet for the solution.

Solution originally posted at: Github by @codingsince1985