diff --git a/day23/day.go b/day23/day.go index 52d9d85..e2004de 100644 --- a/day23/day.go +++ b/day23/day.go @@ -92,6 +92,12 @@ func Part2(puzzle tools.AoCPuzzle) interface{} { "d": 0, } + /* + This could be optimized by closely looking at the input and finding the "inc x" loops + and then replace them with multiplications. + Also the code seems to resemble a factorial implementation which could lead to finding + the solution without executing the code at all. Needs more analysis. + */ register = run(puzzle.GetInputArray(), register) return register["a"]