Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
The answer is simple: it does not.
Needs random tests
Also, a duplicate.
Not an issue
This comment is hidden because it contains spoiler information about the solution
Translated to Java.
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.
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.
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.