# Tag Archives: Coordinate Geometry

Given N points in K dimensional  space in a 2D array Points[][], where 1≤ N ≤ 105 and 1 ≤ K ≤ 5. The task… Read More
Distance formula is used to compute the distance between two points, a point, and a line, and two line segments. The distance formula can be… Read More
Given an array arr containing N coordinate points in a plane, the task is to check whether the coordinate points lie on a straight line… Read More
Given four arrays x1[], x2[], y1[], y2[] of size N where (x1[i], y1[i]) denotes the left-bottom corner and (x2[i], y2[i]) right-top corner of a rectangle,… Read More
Given a positive integer D, the task is to find the number of integer coordinates (x, y) which lie at a distance D from origin.… Read More
Given N integer coordinates where X[i] denotes the x-coordinate and Y[i] denotes the y-coordinate of the ith coordinate, the task is to find the sum… Read More
Given a positive integer N and coordinates (X, Y), the task is to check if it is possible to reach (X, Y) from (0, 0)… Read More
Given an array arr[] consisting of N positive integers and two integers X and Y, the task is to check if it is possible to… Read More
Given two positive integers X and Y, the task is to find whether a point (X, Y) can be reached from the point (0, 0)… Read More
Given two integers A and B, representing the length of the semi-major and semi-minor axes of a Hyperbola, the task is to find the length… Read More
Given four integers a, b, c representing coefficients of a straight line with equation (ax + by + c = 0), the task is to… Read More
Given an N-sided polygon, the task is to find the ratio of the area of the Nth to (N + 1)th N-sided regular nested polygons… Read More
Given centres and the radii of three circles A, B, and C in the form of {X, Y, R}, where (X, Y) is the centre… Read More
Given an array arr[] consisting of N coordinates in the Cartesian Plane, the task is to find the number of coordinates, such as (X, Y),… Read More
Given two integers A and B, representing the length of the semi-major and semi-minor axis of a Hyperbola of the equation (X2 / A2) –… Read More