# Category Archives: Geometric

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 3 arrays X[], Y[], and T[] all of the size N where X[i] and Y[i] represent the i-th coordinate and T[i] represents the time… Read More
Given an array, lines[] of N pairs of the form (i, j) where (i, j) represents a line segment from coordinate (i, 0) to (j,… Read More
Given the area of a square inscribed in a circle as N, the task is to calculate the area of a circle in which the… Read More
Given N points on a plane, where each point has a direct path connecting it to a different point, the task is to count the… 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 an array arr[] of sides of N triangles, the task is to sort the given sides of triangles on the basis of the increasing… 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 a Matrix grid[][] of size NxM where N is number of rows and M is number of columns. The task is to form a… 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, the task is to find the maximum number of unique squares that can be formed with N arbitrary points in… 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 two integer coordinates (X1,  Y1) and (X2, Y2) and two positive integers K1 and K2, the task is to check if both the coordinates… 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 Integers N and M, N indicating equidistant points on circumference of a circle and M indicating number of chords formed with those points.… Read More