InterviewDB Question

Shipping Route: Find the Cheapest Shipping Route with At Most K Stops

Question Details

Problem You are given n cities and a list of flights (source, destination, price). Find the cheapest route from src to dst with at most k intermediate stops. Return the cost, or -1 if no such route exists. Example: Approach Bellman-Ford with k+1 rela…

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Coding Phone