Ad
  • Custom User Avatar

    Hmmm. I don't understand your added code. Can you explain how my solution was wrong? Also, do you have any good resources for creating new kata, other than the codewars docs?

  • Custom User Avatar

    Yes, please. I would love to learn from your upgrades.

  • Custom User Avatar

    Thank you for the feedback. This is my first kata. I appreciate your help improving it.

  • Custom User Avatar

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

  • Custom User Avatar

    I too get this message. I cannot find a number that breaks my code. However, I am given no information for addressing this issue with the test cases.

  • Custom User Avatar

    That doesn't help me much. Could you offer more explicit information? My code accounts for both empty arrays and arrays with lengths greater than zero. I also pass all of the tests. The issue (yes, codewars refers to it as "issue") is not clearly associated with any specific test or group of tests. In other words, I'm at a loss here.

  • Custom User Avatar

    My solution to this kata passes all tests. But I am receiving one error, which begins by stating "FATAL ERROR: invalid array length Allocation failed - JavaScript heap out of memory.". Is this an error on the end of Codewars, or is there something I can do to resolve this myself? I would certainly like to add this kata to my completed kata list and collect the associated points. Thanks for any information on resolving this issue.