Ad
  • Default User Avatar

    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?

  • Default User Avatar

    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.

  • Default User Avatar

    At least, in this realm, your (pro)creation can simply be redone.

  • Default User Avatar

    Yeah, I had to reset it. Thanks for your help.

  • Custom User Avatar

    Your code is missing package longestconsec before the function.

  • Default User Avatar

    No. I tested my code in IntelliJ IDEA with the tests available. No issues.

  • Default User Avatar

    There are no errors in the kata. Did you forget something?

  • Default User Avatar

    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.