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'm just another dude who got confused by the title and the description. I think the kata description should have '-1 -2 -3' as an example, same for '1 1 1'
This comment is hidden because it contains spoiler information about the solution
Shouldn't the description say, in a less subtle way, that they want the longest common substring in the response? Because I think that's the case if there are more than one common substring between two adjacent words, right?
This comment is hidden because it contains spoiler information about the solution
Well I solved it but, in the case of Haskell, the test suite is wrong. The description says that in case of multiple solutions I should return the one that appears first in the string. But that's not the case in the test suite for instance:
longest "abcdeapbcdef" shouldBe "bcdef"
Is clearly wrong. "abcde" is as long as "bcdef" is, and it certainly comes first. I think having a different kata description for this language only will spare some trouble to future coders.
This comment is hidden because it contains spoiler information about the solution