# Category Archives: Geometric

## Forming triangles using points on a square

Given a square with N points on each side of the square and none of these points co-incide with the corners of the square. The… Read More »

## Angle subtended by an arc at the centre of a circle

Given the angle subtended by an arc at the circle circumference X, the task is to find the angle subtended by an arc at the… Read More »

## C++ Program to Illustrate Trigonometric functions

The math.h header contains methods for performing basic numeric operations such as the elementary exponential, logarithm, square root, and trigonometric functions. In order to use… Read More »

## Maximum number of line intersections formed through intersection of N planes

Given N planes. The task is to find the maximum number of line intersections that can be formed through the intersections of N planes. Examples:… Read More »

## Check if two given Circles are Orthogonal or not

Given are two circles with their centres C1(x1, y1) and C2(x2, y2) and radius r1 and r2, the task is to check if both the… Read More »

## Program to calculate area of a rhombus whose one side and diagonal are given

Given the length of diagonal ‘d1’ of a rhombus and a side ‘a’, the task is to find the area of that rhombus. A rhombus… Read More »

## Find the maximum possible distance from origin using given points

Given N 2-Dimensional points. The task is to find the maximum possible distance from the origin using given points. Using the ith point (xi, yi)… Read More »

## Check if a right-angled triangle can be formed by moving any one of the coordinates

Given three coordinates of a triangle (x1, y1), (x2, y2), (x3, y3). The task is to find out if the triangle can be transformed to… Read More »

## Program to find Area of Triangle inscribed in N-sided Regular Polygon

Given the triangle inscribed in an N-sided regular polygon with given side length, formed using any 3 vertices of the polygon, the task is to… Read More »

## Count number of pairs of lines intersecting at a Point

Given N lines are in the form a*x + b*y = c (a>0 or a==0 & b>0). Find the number of pairs of lines intersecting… Read More »

## Maximum number of region in which N non-parallel lines can divide a plane

Given N‘, the number of non-parallel lines. The task is to find the maximum number of regions in which these lines can divide a plane.… Read More »

## Check whether two points (x1, y1) and (x2, y2) lie on same side of a given line or not

Given three integers a, b and c which represents coefficients of the equation of a line a * x + b * y – c… Read More »

## Find the area of quadrilateral when diagonal and the perpendiculars to it from opposite vertices are given

Given three integers d, h1, h2 where d represents the length of the diagonal of a quadrilateral. h1 and h2 represents the lengths of the… Read More »

## Find the diagonal of the Cube

Given a side of the cube a. The task is to find the length of the diagonal of the cube. Examples: Input : a =… Read More »

## Concentric Hexagonal Numbers

The following numbers form the concentric hexagonal sequence : 0, 1, 6, 13, 24, 37, 54, 73, 96, 121, 150 …… The number sequence forms… Read More »