You are viewing a single comment's thread. Return to all comments →
Some of the test cases have a wrong output in the solution. For example, all these four points lie on a plane
(-497 -988 178) (-379 327 -325) (-806 -644 445) (-359 -367 -156)
But, the solution says "NO". I am solving the problem by checking if four points, A, B, C, D lie on a plane
n1 = (B-A) cross (C-A) n2 = (C-A) cross (D-A)
Now, check if (n1 cross n2) is zero
Seems like cookies are disabled on this browser, please enable them to open this website
Sherlock and Planes
You are viewing a single comment's thread. Return to all comments →
Some of the test cases have a wrong output in the solution. For example, all these four points lie on a plane
(-497 -988 178)
(-379 327 -325)
(-806 -644 445)
(-359 -367 -156)
But, the solution says "NO". I am solving the problem by checking if four points, A, B, C, D lie on a plane
n1 = (B-A) cross (C-A) n2 = (C-A) cross (D-A)
Now, check if (n1 cross n2) is zero