Given a set of points in the plane. the convex hull of the set is the smallest convex polygon that contains all the points of… Read More
Category Archives: Geometric
Given a set of points in the plane. the convex hull of the set is the smallest convex polygon that contains all the points of… Read More
Given a polygon and a point ‘p‘, find if ‘p‘ lies inside the polygon or not. The points lying on the border are considered inside.… Read More
Given two line segments (p1, q1) and (p2, q2), find if the given line segments intersect with each other.Before we discuss the solution, let us… Read More
We are given an array of n points in the plane, and the problem is to find out the closest pair of points in the… Read More
Given three corner points of a triangle, and one more point P. Write a function to check whether P lies within the triangle or not.… Read More