Bus Routes at Uber
Hard47.1% acceptance
This problem has 100.0% frequency at Uber.
Problem Description
You are given an array `routes` representing bus routes where `routes[i]` is a bus route that the `ith` bus repeats forever. * For example, if `routes[0] = [1, 5, 7]`, this means that the `0th` bus travels in the sequence `1 -> 5 -> 7 -> 1 -> 5 -> 7 -> 1 -> ...` forever. You will start at the...
Read full problem and hintsTopics
Also asked at 16 companies
More Uber Questions
Number of IslandsMediumConstruct Quad TreeMediumSquares of a Sorted ArrayEasyLongest Continuous Subarray With Absolute Diff Less Than or Equal to LimitMediumText JustificationHard
View all Uber questions