Ad
  • Custom User Avatar

    The answer is simple: it does not.

  • Custom User Avatar

    Needs random tests

    Also, a duplicate.

  • Custom User Avatar

    Not an issue

  • Custom User Avatar

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

  • Custom User Avatar

    Translated to Java.

  • Custom User Avatar

    Minor quibble with the phrase "the first number it returns should be the smallest number," as this isn't always what the test cases want. For example, if your test case produces two negative roots r1 < r2, the test expects r2 to precede r1 in the array. You may just need some more precise language here.

  • Custom User Avatar

    This kata need to address when delta is == 0 (one real solution) and should have random test cases.

    I translated it into both Ruby and JS, if you want to approve them; notice I didn't round the solution as I think the whole process is pretty straightforward, so there should not be rounding errors doing things in different order, but in case I can still fix it.

  • Custom User Avatar

    This was very confusing for me too. The array it gives you is minemap = [[True, True, True], [False, False, True], [True, True, True]]. Each new minemap item is going across and each new minemap[x] item is going down, if that makes sence. So it would look like this

    True(minemap[0][0])--------------------------------------False(minemap[1][0])--------------------------------------True(minemap[2][0])--------------------------------------------------------------------------------
    True(minemap[0][1])--------------------------------------False(minemap[1][1])--------------------------------------True(minemap[2][1])--------------------------------------------------------------------------------
    True(minemap[0][2])--------------------------------------True(minemap[1][2])--------------------------------------True(minemap[2][2])--------------------------------------------------------------------------------
    Just ignore how the minemap looks in the test arrays. Hopefully this helped.