advent-of-code/2024-python/output
Anders Englöf Ytterström cb622409f9 Solve 2024:3 p1-2 "Mull It Over"
Felt paranoid on this one, was expecting something
much worse for pt2.

The code that solved the puzzle was _extremely_
naive:

- It asumes puzzle input only contains mul() with
1-3 chars. The versioned code have `{1,3}` as safe
guard.
- p2 asumed initial chunk does not begin with
"n't". Would have been easy to handle though.
- p2 asumed junk strings as "don", "do", "don()t"
would not exist.

In other words, I was really lucky since I did not
look that closely on puzzle input beforehand.

Might have cut 60-90 seconds further if I had just
ran pt2 immidately instead of staring dumbly on the
test data (that changed for pt2).

Also, I got reminded that \d in regular expressions
is equal to `0-9`: it does not include commas and
punctations. The code that solved the puzzle was
paranoid and instead used `0-9`.

Managed to score ~1500th somehow despite this.
2025-01-05 00:06:18 +01:00
..
__init__.py Solve 2024:3 p1-2 "Mull It Over" 2025-01-05 00:06:18 +01:00
day_01.py Solve 2024:1 p1-2 "Historian Hysteria" 2025-01-05 00:06:18 +01:00
day_02.py Solve 2024:2 p1-2 "Red-Nosed Reports" 2025-01-05 00:06:18 +01:00
day_03.py Solve 2024:3 p1-2 "Mull It Over" 2025-01-05 00:06:18 +01:00