Qm
BrainteasersJane StreetCitadel

How often do the buses run?

A cyclist rides at a constant speed along a straight road served by buses. Buses run at a constant speed in both directions, leaving at regular intervals that are the same for each direction. The cyclist notices that a bus overtakes him from behind every 12 minutes, and that he meets an oncoming bus every 4 minutes.

How often do the buses leave, and how does the bus speed compare with the cyclist's?

Show a hint

Buses in one direction are spaced a fixed distance apart. The time between overtakings is that spacing divided by the closing speed (bus speed minus cyclist speed); the time between oncoming meetings is the spacing divided by bus speed plus cyclist speed.

Your answer

Solving needs a free account

Answers, streaks and solutions unlock when you are signed in. Reading the question and the hint stays free.

Discussion

Sign in to join the discussion · reading is open to everyone

💡 Discussion rules

  1. No full solutions here. Hints and approaches only.
  2. Complexity, edge cases and intuition are the point.
  3. Interview experiences are welcome. Respect your NDAs.

Loading discussion…

Learn the concepts

The theory behind this question.

Related questions

How many steps on the escalator?When is one candle twice the height of the other?The two ferries and the width of the riverWhen do the hands meet between 5 and 6 o'clock?Lapping a slower runner
All questions →