Computer Science, asked by ayush14447, 5 hours ago

print an integer representing the distance covered by the buses​

Answers

Answered by BeAuTyBLusH
2

Answer:

We have a list of bus routes. Each routes[i] is a bus route that the ith bus repeats forever. For example if routes[0] = [1, 5, 7], this means that the first bus (0th indexed) travels in the sequence 1→5→7→1→5→7→1→... forever.

We start at bus stop S (initially not on a bus), and we want to go to bus stop T. Travelling by buses only, what is the least number of buses we must take to reach our destination? Return -1 if it is not possible.

Answered by ItzparthXx99
3

Answer:

plant tissue that has completed its growth and differentiation and is usually incapable

Similar questions