We’re preparing your current view and syncing the latest data.
You are given an array routes representing bus routes where routes[i] is a list of stops that the i-th bus repeats forever.
You start at the source bus stop and want to go to the target bus stop. You can get on any bus at any stop on its route. Return the least number of buses you must take to travel from source to target. Return -1 if it is not possible to reach the target bus stop from the source.
int representing the minimum number of buses to take, or -1 if impossible