Finding the Shortest Path with Time-Based Road Closures using Dijkstra's Algorithm

This problem involves finding the shrotest path in a graph where certain edges are temporarily closed. The graph has $N$ nodes and $M$ edges, with $N \le 1000$ and $M \le 10000$. Given the constraints, an adjacency matrix is a suitable choice for representing the graph. We need to determine the optimal travel time for a character, let's call th ...

Posted on Tue, 28 Jul 2026 17:09:19 +0000 by lar5