Question: Write a function 3PL that takes as input an array A of points on the plane, and returns 1 if the array contains 3 points
Write a function 3PL that takes as input an array A of points on the plane, and returns 1 if the array contains 3 points that are on the same line, and 0 otherwise. The algorithm should run in time O(n 2 log n).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
