AlgoMaster Logo

787. Cheapest Flights Within K Stops

n=4,flights=[[0,1,100],[1,2,100],[2,0,100],[1,3,600],[2,3,200]],src=0,dst=3,k=1
0 / 20
algomaster.io
Step:4 cities and 5 flights. Find the cheapest route from 0 to 3 using at most 1 stop(s).