MetaSoftware Engineer · OnsiteCodemia practiceCheapest Route Between Data Centers Using at Most K Hops
Given directed transfer links (from, to, cost) between data centers, a source, a destination, and a limit k, return the cheapest total cost to move data from source to destination using at most k intermediate hops, or -1.
Medium
Coding & Algorithms