The Pony Express was a mail service that operated from 1859-60 in the United States. It was made completely obsolete by the intercontinental telegr...
For further actions, you may consider blocking this person and/or reporting abuse
The question is a bit unclear: it speaks about getting from A to B and then lists 4 points. I assume that A is the first and B the last.
So then...
APL (Dyalog APL)
The complete program:
Testing...
Try it online!
My solution in js
Nice your solution is a little bit on an expert level here my JS solution
Good approach. Taking the total and dividing by 100 to see how many riders.
is the + !!stations just to add one?
Gotta love that
.reduce()
It could also be done as a one-liner with something like this, but it's a lot less clear:
My challenge is writing this is Haskell on the phone without running the code.
Clojure:
In reason:
Here on sketch: sketch.sh/s/uYFZAhtZSc2Ya4r6t1GNKM/
Elm
Tests
Playground
Hosted here on Ellie App.
This is a Swift solution:
My code in JS
c#: