Ad
  • Custom User Avatar
  • Custom User Avatar

    That is strange; I am taking the array you gave and running it through the same function that Codewars should be running it through behind the scenes, and it's turning up correctly. I will look at my test cases and ensure everything looks correct.

    The random cases are run through a loop however, so it's imaginable that if there's an issue with one there'd be an issue with them all. Are you passing some random test cases before this happens or does it happen on the first one?

    EDIT: I just tried it again and it works. I know Codewars has been buggy for me all day (assigning servers and such), and since the random arrays are generated by a function that should be preloaded in the execution order, maybe it's not being executed serverside by Codewars?

  • Custom User Avatar

    Hi BK - my mistake. I'd tweaked the code for the test cases and accidentally reverted to the old maximum values. This should be fixed now - give it another spin.