Skip to main content

Module day07

Module day07 

Source
Expand description

§Amplification Circuit

Brute force solution for both parts using the utility permutations method to test each of the possible 5! or 120 permutations of the phase settings.

Functions§

parse
part1
part2
permutations 🔒
Generates all possible permutations of the array, passing them to a callback function.