Skip to content

Latest commit

 

History

History

the-pony-express

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

The Pony Express was a mail service operating in the US in 1859-60.

Pony Express

It reduced the time for messages to travel between the Atlantic and Pacific coasts to about 10 days, before it was made obsolete by the transcontinental telegraph.

How it worked

There were a number of stations, where:

  • The rider switched to a fresh horse and carried on, or
  • The mail bag was handed over to the next rider

Task

stations is a list/array of distances (miles) from one station to the next along the Pony Express route.

Implement the riders method/function, to return how many riders are necessary to get the mail from one end to the other.

NOTE: Each rider travels as far as he can, but never more than 100 miles.