You are given a directed graph represented as an adjacency list `edges`, where `edges[i]` is a list of nodes that can be directly reached from node `i`, along with a source node `src` and a destination node `dst`. Find the minimum number of hops required to reach `dst` from `src` using the given graph.
Explanation: The minimum number of hops required is indeed 3 following the path 0 -> 1 -> 2 -> 3.
Analyze constraints and compute optimal solutions step-by-step.
No dry run loaded.
🚀 Practice this problem
Run code, get AI hints & track streak