Module aoc::year2015::day24

source ·
Expand description

§It Hangs in the Balance

To simplify things assumes that the remaining items after the first best combination is found can be split evenly.

Sorts the weights in ascending order, then tries combinations of increasing size until a match in found. This will be the answer since the package count is the smallest and the quantum entaglement will also be the lowest.

Functions§