Count Shortest Paths
Medium
Weighted Path Variants
Given an undirected weighted graph, print the number of distinct shortest paths from node 1 to node n, modulo 1,000,000,007.
Constraints
2 <= n <= 10^5
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.