Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
forget about towns and distances. this is just a math problem dressed up in silly nonsense in an attempt to make it relatable, and it fails spectacularly
This comment is hidden because it contains spoiler information about the solution
Not only clairvoyant, but also a necromancer! How cool is that!
What about the other 4 cheats you published? Were those accidents as well?
That is extremely confusing. No one would understand it that way.
To answer: "why does the second sequence you gave not fit the description of the kata?"
The sequence consists of repeatedly performing the given operation on the result of the previous operation, whereas you are performing some kind of string slicing with
i
on the same, initial strings
.e.g., using the Description example:
.
Take the number of the example, pass it to your function, see the numbers you get, find what you're doing wrong.
This comment is hidden because it contains spoiler information about the solution
Make a fork, add the tests you want.
.
Math.
I understand your point.
Consider the first list in the description: ls = [50, 55, 57, 58, 60].
In my thinking 50 is distance from a town A to a town B, 55 is d(B, C) and so on...
If they choose [57, 58, 60] they will drive from C to D, from D to E, from E to F.
If they choose [55, 58, 60] they will drive from B to C, from D to E, from E to F.
In the last case the story doesn't tell us how they go from C to D; it doesn't tell us how they go from home to B and from F to home but John doesn't drive.
Maybe they take a bike or a plane or whatever.
Our only problem is when John has to drive.
Might be but many abstact problems come from life problem.
It was(is?) a habit at CW to "give" a story. This one doesn't seem to be really adequate but I am sure you have good ideas about how to improve or complete it.
Loading more items...