Skip to content

Category Archives: Geometric

Given an integer A, denoting the length of a cube, the task is to find the shortest distance between the diagonal of a cube and… Read More
Given a grid consisting of horizontal & vertical bars of size (N + 2) x (M + 2) and two arrays H[] and V[] denoting… Read More
Given two integers H1 and R representing the height and radius of a cone and two integers H2 and S representing the height and length… Read More
Given an array arr[][] of dimension N * 2 representing the co-ordinates of N points and an array Q[] consisting of M integers, the task… Read More
Given a, b, and c the coefficients of X2, X, and the constant term in the general equation of the parabola , the task is to… Read More
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[0], Y[0]) and (X[1], Y[1]) 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