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.
the unit is not relevant for the calculation in this case
Maybe it shoud be done other way around? Check for valid numbers insead of checking if its false?
Because you are modifying data here "data[i+1] = data[i];" and the original data should be unchanged
Very bad description. You shoud mention that we need to check if both values are equal and add one iteration. Please change the description that it mentions the above. I have to check for discourse to find that hint.
Very fun kata, maybe its too easy to be classified as 6kyu task
Please add in description note about distance units. You did not mentioned that distance was in miles not in KM. I think its fair to say that.
Furthermore the kata was good practise for my beginner skills :)
Good point. I was wondering what this function shoud return...
Please change description
I tested the Input and got the right Output with 41 included.
Check your code.
Lol xD
not an issue, unless you can "prove" it: what's the input? Without that, nobody can tell if your code is wrong or the tests. You can reopen with more information if you can prove the problem is in the tests.
Note: it's most likely your code, tho (look at the number of completions)
Cheers
This comment is hidden because it contains spoiler information about the solution
Bro, thank You so much! The description is awful AF. Without You I would skip this kata...
Please rewrite the description i am confused.
Please, somebody delete this kata or rewrite the description.
That's a problem with your code, not a kata issue. Start by printing the input, your code fails tests like this one:
Loading more items...