advent-of-code/2016-python2/output
Anders Englöf Ytterström c113042e17 Solve 2016:11 p1-2 "Radioisotope Thermoelectric Generators"
Hard one, an infamous AoC puzzle according to
Reddit.

Apparently, this is a classic logic problem named
"Missionaries and cannibals", or "Jealous husbands".

Hard lessons:

- Always use set() for visited nodes during BFS.
- Always use collections.queue() to create to queue
  traversals for BFS.
- itertools permutations(), combinations() and
pairwise() may look similar, but they are not.
- Learned to use (?:chunk of text)? in regex.

Test data was achieved without bigger hazzles, but
to optimize code required a lot of Reddit browsing
and code reading from blogs. I have mentioned the
sources in a doc string.
2024-12-12 13:53:43 +01:00
..
__init__.py Solve 2016:13 p1-2 "A Maze of Twisty Little Cubicles" 2024-12-12 13:53:43 +01:00
day_11.py Solve 2016:11 p1-2 "Radioisotope Thermoelectric Generators" 2024-12-12 13:53:43 +01:00
day_12.py Solve 2016:12 p1-2 "Leonardo's Monorail" 2024-12-12 13:53:43 +01:00
day_13.py Solve 2016:13 p1-2 "A Maze of Twisty Little Cubicles" 2024-12-12 13:53:43 +01:00