Algorithm to Check if All Points are On the Same Line May 8, 2020 algorithms, c / c++, geometry No Comments You are given an array coordinates, coordinates = , where represents the coordinate of a point. Check if these points make a straight line in the XY plane. Input: … [Continue Reading...]
Algorithm to Compute the Shortest Distance between Points on Two Lines May 12, 2019 algorithms, c / c++, geometry, interview questions, programming languages No Comments Let U = represent a increasing series of points; xu0 < xu1 && yu0 < yu1, etc. Let D = represent a decreasing series of points; xd0 < xd1 … [Continue Reading...]