Ad
  • Custom User Avatar

    Great Kata. Yet I found this kata alot easier from other katas of yours in 7kyu. Is there a moderator to evaluate kata difficulty, or it is your decision?

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Right, though does the same!

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    You can call out code or a command with backticks ` before and after your code, also mark your comment as a spoiler if it contains code.

  • Custom User Avatar

    I really couldn't figure out the appropriate label for this comment or what it aims for! What are you trying to theorize here?

  • Custom User Avatar

    I apparently misinterpretted the instructions, i was solving a different problem. Thanks anyway

  • Custom User Avatar

    So?
    index[1] still the longest, so it must come first concatenated with the next string, right?

  • Custom User Avatar

    This Kata was interesting to solve! I solved it, but when i was trying to optimize my code by excluding the first and the last elements of the array since there is neither elements before the first nor after the last one(logically), i got errors like my code should return index 0 of {0,0,0,0}!
    This may seem confusing to other warriors!

  • Custom User Avatar

    Hello, I'm conding in C and I have passed all fixed tests, though while submitting appears:
    Error. Expected wlwsasphmxxowiaxujylentrklctozmymu but got owiaxujylentrklctozmymuwpgozvxxiu.

    -If testing(longest_consec(["wlwsasphmxx","owiaxujylentrklctozmymu","wpgozvxxiu"], 2),

    -So "owiaxujylentrklctozmymu" should be the longest string

    -then concatenate the longest string consecutively with the next string (since k=2) in the array yields unexpected result as: "owiaxujylentrklctozmymuwpgozvxxiu",

    Do I miss something?

  • Custom User Avatar

    would anybody be able to tell me the exact algorithm for this kata?,
    All solutions are hard-coded.
    I think it has the same algorithm for sorting array of names based on their ages.