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 hints

Topics

Also asked at 16 companies


More Uber Questions

View all Uber questions