AoC 2021 D15: Chiton
| Problem statement | Source code | Tags: Dijkstra
← Previous Back to AoC Index Next →
This is a classic shortest path problem, where the edge weights are the risk levels of the destination cells. I just run Dijkstra's. I never remember how to write one, and Wikipedia's first version is the non-ideal one, so here's a better template: