All Training Resources

Topic: Data Science.

Difficulty: Easy.

Companies who previously asked this: Amazon.

Objective: A scooter has two tyres and one Stepney. Each tyre can run a maximum distance of five kilometres. How long will the scooter run?

### Full Solution

Let us assume the three tyres are labeled A, B, and C

Tyre A = 5km

Tyre B = 5km

Tyre C = 5km

At first, the scooter will use tyre A and tyre B and runs a distance of 2.5 km.

This means that the scooter used half of the distance of tyre A and tyre B, but tyre C remains unused.

The result becomes: Tyre A = 2.5 km, Tyre B = 2.5 km, Tyre C = 5 km
Distance Travelled so far: 2.5km

Next, we will swap Tyre A with Tyre C. Then, using tyre B and tyre C, the scooter runs another distance of 2.5 km.

In this second ride, the scooter used half of the distance of tyre C and the remaining distance of tyre B, while tyre A remains 2.5km.

The result becomes: Tyre A = 2.5 km, Tyre B = 0 km, Tyre C = 2.5 km
Distance Travelled so far: 5km

Finally, we will swap Tyre B with Tyre A. Then, using tyre A and tyre C, the scooter runs another distance of 2.5 km.

This will be the last ride as the scooter uses the remaining distance of tyre A and tyre C, while tyre B is already used up.

The final result becomes: Tyre A = 0 km, Tyre B = 0 km, Tyre C = 0 km
Distance Travelled so far: 7.5km

Therefore, total distance travelled is 7.5 km