Ad
  • Default User Avatar

    I agree with this person. It is very easy to read the problem as treating the two string separately, and returning the resulting string that is longer.

  • Custom User Avatar

    Please consider rephrasing the prompt. I was able to figure out how to fix my issues after visiting the comment section and realizing I was interpreting the prompt incorrectly.

  • Default User Avatar

    Sorry, it's not a kata problem but a flaw in your code. Print the input to see what happens.

  • Custom User Avatar

    Can you prove this is an issue with the tests and not your own code? The submission tests are broader than the sample tests. It seems more likely that your code isn't handling one of the submission tests properly -- check the provided input by printing it to the console.

  • Custom User Avatar

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

  • Custom User Avatar

    I'm passing all tests except the three you mentioned. Any tips?

  • Custom User Avatar

    algebra
    k = total/n

  • Custom User Avatar

    I cannot figure out how to calculate k.

  • Custom User Avatar

    Took some unnecessary extra steps here, still, nothing in intelectually more satisfactory than resolving a recursion problem.

  • Default User Avatar

    Hi @jpchato, it's not an issue with the kata. Your code is outputting too much to the console, so just silence your print statements.

  • Default User Avatar

    Passing all tests but getting this error when I try to submit:
    "STDERR
    Max Buffer Size Reached (1.5 MiB)"

    Solving with Python, please assist