Module aoc::year2015::day15

source ·
Expand description

§Science for Hungry People

Brute force solution trying every possible combination of ingredients. The loop conditions are calculated so that the ingredients always sum to 100. Solves part one and two simultaneously.

As an optimization we check halfway through the loops to see if any ingredient will never be be greater than zero to skip large numbers of combinations.

Functions§

Type Aliases§