Ad
  • Custom User Avatar

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

  • Custom User Avatar

    Ah, is that so. I didn't think that would be the case. I'll look into it. Thanks

    Just asking out of curiosity, which language did you solve the kata in?

  • Custom User Avatar

    Yes, I'm using match. And btw I checked once again. The sample tests run fine now. But the problem persists when testing for random tests with Attempt.

  • Custom User Avatar

    I seem to be having a problem. But I'm not sure whether it's an issue with my own code or whether there's a problem with the kata. All the sample as well as the random tests were successful. However, in both the sample and random tests I get this TypeError: Can't read property '0' of null. And the thing is, with every Attempt, the number or errors keep changing. From 8 errors, to 5 errors or 6 errors or 2 errors.

    There doesn't seem to be a problem with the code though. I copied the entire thing, both the function and the input and tested them in the console. Didn't get the TypeError.

  • Custom User Avatar

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

  • Custom User Avatar

    Could be because it looks cleaner?

  • Custom User Avatar

    I have a similar solution but use slice to keep the original array as it is. It's certainly not required to pass the test cases but I think is a nice challenge.

  • Custom User Avatar

    Hello. I tried solving this kata in Python. It passed 7 basic tests and then gives a stderr saying that an 'int' object is not subsciptable. I copied the whole function and tried in Python IDLE (Python 3.4.4). I gave it all the signature inputs specified in the basic tests. It didn't give me any kind of error. What has been going wrong?