The real test cases are very carefully written so that the point will never lie on the exact edge. It is possible that your browser is displaying it incorrectly if that's what you're seeing.a
with input "[ [ -1, -1 ], [ 9, -1 ], [ 4, 9 ] ], [ 1, -3 ]", The point is obvious outside the polygon, But it said it should be inside?
What test is that? There's only one quadrilateral test, and it's a square from [-5, -5] to [5, 5].
“In the tests, the point will never fall exactly on an edge of the polygon.”
Not true with tests.
And why is the 2nd test be inside while 4st be outside while they are all on the edge of its polygon?
another task:
with input "[ [ -1, -1 ], [ 9, -1 ], [ 4, 9 ] ], [ 1, -3 ]", The point is obvious outside the polygon, But it said it should be inside?
Already fixed
The real test cases are very carefully written so that the point will never lie on the exact edge. It is possible that your browser is displaying it incorrectly if that's what you're seeing.a
What test is that? There's only one quadrilateral test, and it's a square from [-5, -5] to [5, 5].
Description issue.
should be
“In the tests, the point will never fall exactly on an edge of the polygon.”
Not true with tests.
And why is the 2nd test be inside while 4st be outside while they are all on the edge of its polygon?
another task:
with input "[ [ -1, -1 ], [ 9, -1 ], [ 4, 9 ] ], [ 1, -3 ]", The point is obvious outside the polygon, But it said it should be inside?
Interesting kata...
And as usual, some test examples really mad me... I promise I have never met so weird Molecule formulas...
Good job :)