Number of Ways to Arrive at Destination — Interactive Visualizer

Extend Dijkstra's algorithm to count the total number of distinct paths that achieve the absolute minimum travel time.