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.
Try and do your math with pure integer arithmetic. This means your functions getDeterminant, getIntersectionX etc. should return an object (or similar) representing numerator and denominator as integers, rather than doing the divisions. Then you will know whether you have a geometry bug or a rounding error - and in the latter case you will win the kata :)
This comment is hidden because it contains spoiler information about the solution
I haven't submitted my solution yet because, even though it passes all tests, I know that it would fail given the right tests.
This kata needs additional tests for dead ends.
This comment is hidden because it contains spoiler information about the solution
Your solution only works for numbers 0-9
This comment is hidden because it contains spoiler information about the solution
The 3 provided test case has some syntax errrors, throwing an error when you try to run it. I'm still figuring out Ruby, so I'm not really sure what they are.
Spelling issues in tests. "Mast" -> "Must"
Unclear instructions for null / 0 size input.
I realized after submitting that it would be cleaner to simply multiply by 0.5 so it's automatically a double rather than cast it as a double.