aoc::year2018::day15

Function part2

Source
pub fn part2(input: &Input) -> i32
Expand description

Find the lowest attack power where no Elf dies. We can short circuit any fight once a single Elf is killed. Since each fight is independent we can parallelize the search over multiple threads.