End of Year Sale: Use Coupon Code END2025 to Get Extra 25% Off.
flights array.dist array with large values, except for dist[src] which should be 0.{src, 0}.stops to 0.stops > k:
dist for that neighbor and enqueue it.stops.dist[dst] if it's not the initial large value; otherwise, return -1.