Ad
  • Custom User Avatar

    It appears I was mistaken, upon further analysis, you're correct, I was just misinterpreting the results I was getting, sorry!

  • Custom User Avatar

    They don't. All the tests follow the same pattern.

  • Custom User Avatar

    If that's the case, then why do some of the random tests follow a different pattern?

  • Custom User Avatar

    There is no issue with the random tests in JavaScript.

  • Custom User Avatar

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

  • Custom User Avatar

    No idea either, I've tried your current solution changing all arrow functions to normal function syntax and it worked fine.

  • Custom User Avatar

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

  • Custom User Avatar

    Oh no, our Math object was "accidently" reset.

    That's the point of the kata, you need to reimplement the three mentioned, but you can't use any of the other Math methods either because they're gone.

  • Custom User Avatar

    I keep getting "X is not a function" with my code, it started out as Math.min/Math.max, but then it went onto Math.round, I defined Math.min and Math.max for the sake of getting them out of the way, but I couldn't test my code, it would keep throwing errors

  • Custom User Avatar

    Keep in mind that empty arrays may be not displayed in output, so you might be looking at another tests's inputs, hence different expected results.

  • Default User Avatar

    There is no problem in the tests but your code is wrong.
    Before posting issues it is good to have a look at the top of the page to see how many guys passed the kata (11596 in JS which I suppose... is your language). If the number is high enough chances are that your code is wrong.

  • Custom User Avatar

    The attempt results are inconsistant, Sometimes they want each one of the ints from array2 to be powers of array1 and sometimes it expects true when they aren't all squares, there's no consistancy and debugging it is a pain in the ass