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.
I see what the problem was now, thank you.
owiaxujylentrklctozmymu
-> 23 letters11 + 23 > 23 + 10
Does "owiaxujylentrklctozmymu" not count?
What am I not getting about this problem?
The test is really this one:
testing(longest_consec(["wlwsasphmxx","owiaxujylentrklctozmymu","wpgozvxxiu"], 2), "wlwsasphmxxowiaxujylentrklctozmymu")
Where did you get that other one?
You can see the answer is right, because:
wlwsasphmxx
-> 11 letterswpgozvxxiu
-> 10 lettersNo problem with the test.
Ruby
One of the test cases fails.
testing(longest_consec(["wlwsasphmxx","owiaxujylentrklctozmymu","wpgozvxxiu"], 2), "owiaxujylentrklctozmymuwpgozvxxiu")
Expected: "wlwsasphmxxowiaxujylentrklctozmymu", instead got: "owiaxujylentrklctozmymuwpgozvxxiu"
In the C version, the function name itself is missing the underscore.
I see, sorry this was the first I posted an issue, will make sure to post which language next time.
Thank you!
Thanks omegahm.
Fixed by omegahm.
I have submitted and republished a fixed version. The old one didn't check, if the characters were outside of A-Z and a-z.
Check Ruby translation (reference solution is wrong), it expects 0 and numbers greater than 26 (unlike the other languages).
Other versions of this kata haven't that problem, that's why you should mention which one to check, so we don't need to guess or check all. I can confirm the problem exists in Ruby. Other languages use a=1 to z=26, that should be the behaviour of Ruby version too.
Well, I'm trying to solve it with Ruby.
But I'm not having a problem with the programming language.
I am having a problem with the letters, being used in the kata. I'm not sure which alphabet is being used.
When you have a problem with a kata that has several languages, remember to state which one you're having the problem with.
The kata is not explained completely.
Could you add a more detailed description?
What alphabet should be using?
I assumed that it was just the english alphabet which should go from 1 to 26, but the expected results throw out numbers like 28, 29, 30, etc.
Thank you in advance