Tech Interview

Fuse on Fire

A mad bomber is out on the job, making bombs. he has two fuses (pieces of string) of varying thickness which each burn for 30 seconds. unfortunately he wants this bomb to go off in 45 seconds. he can’t cut the one fuse in half because the fuses are different thicknesses and he can’t be sure how long it will burn. how can he arrange the fuses to make his bomb go off at the right time?


Solution

light both ends of one of the fuses. when that fuse goes out, 15 seconds has elapsed. then light the other fuse.

Exit mobile version