This was pretty much just day 18 again, but without doors and with an input data parsing skill check. I simplified day 18 and went with a basic Dijkstra algorithm after the DFS to crawl the maze which solved this just fine. Part 2 is...ugh.
19 lines
417 B
Plaintext
19 lines
417 B
Plaintext
A
|
|
A
|
|
#######.#########
|
|
#######.........#
|
|
#######.#######.#
|
|
#######.#######.#
|
|
#######.#######.#
|
|
##### B ###.#
|
|
BC...## C ###.#
|
|
##.## ###.#
|
|
##...DE F ###.#
|
|
##### G ###.#
|
|
#########.#####.#
|
|
DE..#######...###.#
|
|
#.#########.###.#
|
|
FG..#########.....#
|
|
###########.#####
|
|
Z
|
|
Z |