# Category Archives: Geometric

Given three integers P, Q, and R representing 3 non-collinear points on a 2D plane with their respective x and y-coordinates, the task is to… Read More
Given two integers a and b representing the length of the two bases, and the two integers p1 and p2 representing the non-parallel sides of… Read More
Given two arrays X[] and Y[], each of length 4, where (X, Y) and (X, Y) represents the bottom left and top right corners of… Read More
In this article, the task is to draw circles using a single mouse click in OpenGL. OpenGL: OpenGL is a cross-language, cross-platform API for rendering… Read More
Given two pairs (X, Y), (P, Q) and R the coordinate of the center of semi-circle, coordinate of the intersection of semicircle and diameter of… Read More
Given equations of two lines (a1, b1, c1) and (a2, b2, c2) such that (ai, bi, ci) are the coefficients of X2, X and a… Read More
Given two integers r and θ (in degree) representing polar coordinates of a point (r, θ), the task is to find the Cartesian coordinates of… Read More
Given integers R and representing the radius of a circle and the angle formed at the center O by the sector AB (as shown in the… Read More
Given an array points[] representing N points in a K-dimensional space, the task is to find the count of pairs of points in the space… Read More
Given two integers A and B, representing the length and the breadth of a sheet, the task is to find the maximum number of sheets… Read More
Given two integers A and B representing coordinates of a point in the first quadrant, the task is to find the minimum number of steps… Read More
Given three positive integers N, M, and A, the task is to count the number of rectangles with area equal to A present in an… Read More
Given an array arr[] consisting of N integers, representing the length of the sticks, the task is to find the maximum sum possible of all… Read More
Given a 2D array segments[][] where each segment is of the form [L, R] representing (X, Y) co-ordinates, the task is to find a segment… Read More
Cayley’s Formula: This formula tells how many trees can be constructed with N vertices. It states that there are NN – 2  labeled trees that… Read More