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.
Why vertical lines should return
false
? Line intersection is still well-defined even if lines are vertical.This looks like incompetence from kata author to handle this case than a requirement that makes sense.
Floating point error:
This kata is a close duplicate of https://www.codewars.com/kata/63a5b74a9803f2105fa838f1, which has become approvable.
Considering this kata has too many issues and written poorly, probably that kata should be approved instead.
No sample and random tests.