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.
Read the description carefully, specifically this part:
If a = 0 or b = 0, return [a,b]. Otherwise, go to step (ii);
4 years late but thank you, thought I was missing something...
Fixed some time ago
I would argue the description is fine. Since it was "less than half is okay." That's all I'm gonna say. Okay.
the test is "1.2.3.4 ". Notice the rear space: that is invalid
Check out this paragraph of FAQ: https://github.com/codewars/codewars.com/wiki/Troubleshooting-your-solution#when-i-print-my-answer-it-looks-exactly-the-same-as-the-expected-output-yet-tests-fail
Yes.
The invalid one isn't
"1.2.3.4"
. Read the posts below, it's been already asked and answered before.@TomDaNub sorry but I don't follow you there,
"At least" and "maximum" sounds like two different things.
@Chrono79, This isn't what he asked. He said that he thought you should get the sum of maximum 2 continuos numbers (and not any length of them).
It's already in the initial code:
Fixed
Last line of kata description:
If empty is valid, why wouldn't a single element be valid?
True !
I did not know why my Attempt was failing.
I assumed that there should be at least 2 elements in sub-arrays.
As a beginner, this is frustating
Please update description and mention that "Sub-arrays can hold only 1 element"
Loading more items...