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.
If you immediately recognise what this Kata is about, what's the point of completing it? And if everyone who has no idea should just give up and move on, who is it for?
It's the original function performed with a recursive implementation instead of loop. It keeps using itself with the n / 10 parameter until one of the first two conditions is met. Pretty neat.
At least, in this realm, your (pro)creation can simply be redone.
Yeah, I had to reset it. Thanks for your help.
No. I tested my code in IntelliJ IDEA with the tests available. No issues.
Weird stuff with the Kotlin branch. It gives me:
"src/test/kotlin/tests.kt:13:13: error: unresolved reference: longestConsec
testing(longestConsec(arrayOf("zone", "abigail", "theta", "form", "libe", "zas", "theta", "abigail"), 2), "abigailtheta")
^
src/test/kotlin/tests.kt:14:13: error: unresolved reference: longestConsec
testing(longestConsec(arrayOf("ejjjjmmtthh", "zxxuueeg", "aanlljrrrxx", "dqqqaaabbb", "oocccffuucccjjjkkkjyyyeehh"), 1), "oocccffuucccjjjkkkjyyyeehh")
^
But there is no typo in the function name.