Qm

The cat and dog race

A dog and a cat race to a post 100 feet away and back, 200 feet in all. The dog covers 3 feet with each leap; the cat covers 2 feet with each leap; but the cat makes three leaps in the time the dog makes two. Each animal must reach or pass the post before turning, and turns take no time.

Who wins the race?

Show a hint

Compare their speeds first. Then look carefully at what happens at the post.

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

Riding with and against the windThe average speed that cannot be reachedUp the hill at 10, down at 30How many horses on the merry-go-round?A hen and a half lays an egg and a half
All questions →