QuantForcesquant interview practice

RB_CH01_Q028. Motorcyclists fly between them

difficulty 1500·answer type: numeric·Not solved

Problem

There are two motorcyclists on a single lane road. They are 25 miles apart. At a signal, they start moving toward each other with constant speeds. The first rides at 20 mph; the second rides at 30 mph. When the signal goes off, a fly on the helmet of the first motorcyclist is startled and starts flying toward the second motorcyclist at 40 mph. When the fly reaches the second motorcyclist (now moving toward the first), he immediately reverses course and flies back to the first motorcyclist. When the fly gets back to the first motorcyclist, he reverses course again. The fly continues to fly backwards and forwards between the two motorcyclists until they all collide. How many miles will the fly have traveled before his life is extinguished?

Submit answer

You must be signed in to submit answers.