Fastest travel

Report a typo

Bob is traveling from city AA to city DD via cities BB and CC. There are several ways to get from one city to another, and travel times are different for different mediums. The options are depicted below:

Use the greedy algorithm

Bob wants to travel from city AA to city DD in the minimum amount of time. Please find the optimal solution for Bob using the Greedy algorithm and write it below.

Please write your answer in this format: Bus, Train, Train

Enter a short text
___

Create a free account to access the full topic