Ad
  • Custom User Avatar
  • Custom User Avatar

    Understood; thanks for considering my suggestion :)

  • Custom User Avatar

    Mh, I run it a number of times, even republished (which makes the tests many times more), and no problem; are you sure you didn't touch the initial array in anyway? Btw changed the code a bit to make it a bit more sound.

  • Custom User Avatar

    Regrettably we cannot have that part of the description different from language to language, so I fear we will have to do with the test cases below.

  • Custom User Avatar

    @GiacomoSorbi

    There might be a small issue with the Python random tests. I kept getting this IndexError but I wasn't accessing the items by index.

    Traceback:
       in 
    IndexError: list index out of range
    

    I just resubmitted a few times and my solution worked. I briefly looked at the random test case code after completing the kata and noticed that is where there are items being accessed by index.

    But I am having trouble deciphering exactly where the problem is. I am guessing it is somewhere in the for _ in xrange(40): loop since there are ~30 random tests passed before the IndexError (it changes each time, this is just on the latest run where I could randomly raise the error).

    I enjoyed the kata in Python, just wanted to let you know since you could probably fix it very quickly!

  • Custom User Avatar

    There are more test cases in the validation step than initially provided with the kata.

    You can print inputs using console.log to figure out what is going wrong.

  • Custom User Avatar

    Because it is evidently not supported here, I would say?

    You can achieve more or less the same with the indexOf() method anyway.

    And, please, next time be sure to use a spoiler tag for your code!

  • Custom User Avatar

    I have passed the test case, but when i submit my code, feedback error : expected Bill instead of false.
    Why ??

  • Custom User Avatar

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

  • Custom User Avatar

    Fixed the description.

  • Custom User Avatar

    Kyus 8 and 7 are for very basic programming.

  • Custom User Avatar

    This is a Test for beginer

  • Custom User Avatar

    This is to mimic the behavior of the normal Math.min function. My apologies, but the kata was locked before people brought up this issue.

  • Custom User Avatar

    This is to mimic the behavior of the normal Math.min function. My apologies, but the kata was locked before people brought up this issue.

  • Custom User Avatar

    This is to mimic the behavior of the normal Math.min function. My apologies, but the kata was locked before people brought up this issue.

  • Loading more items...