Day 12
Posted on Wed 15 December 2021 in aoc2021 • Tagged with python
See problem here.
If this problem was hard for you, you are not alone.. I hope to clear things up in this post.
Background
First, let's go over some general graph traversal algorithms.
def bfs(graph, start, end):
# return True if there exists path from start to end
q = [start …
Continue reading