Cheapest Flights Within K Stops

There are n cities labeled 0 through n-1 and a list of directed flights. Each flight is [from, to, price]. Return the minimum total price to travel from src to dst using at most k intermediate stops, or -1 if no such route exists. A route with at most k stops uses at most k + 1 flights.

Examples
Input: [3,[[0,1,50],[1,2,57],[2,0,64]],0,1,0]
Output: 50
Hints

Cheapest Flights Within K Stops

There are `n` cities labeled `0` through `n-1` and a list of directed flights. Each flight is `[from, to, price]`. Return the minimum total price to travel from `src` to `dst` using at most `k` intermediate stops, or `-1` if no such route exists. A route with at most `k` stops uses at most `k + 1` flights.