# Category Archives: Geometric

## Program to calculate area of a parallelogram

Given integers A and B denoting length of sides of a parallelogram and Y that is the angle between the sides and length of diagonals… Read More »

## Count triangles required to form a House of Cards of height N

Given a number N, the task is to count the number of triangles required to form a House of Cards of N levels. Examples:  Input:… Read More »

## Count squares of size K inscribed in a square of size N

Given two integers N and K, the task is to find the number of squares of size K that are inscribed in a square of… Read More »

## Count cubes of size K inscribed in a cube of size N

Given two integers N and K, the task is to find the number of cubes of size K that can be cotained in a cube… Read More »

## Count number of triangles possible with length of sides not exceeding N

Given an integer N, the task is to find the total number of right angled triangles that can be formed such that the length of… Read More »

## Find the vertex diagonally opposite to the vertex M from an N-sided polygon

Given two integers N and M, the task is to find the vertex diagonally opposite to the Mth vertex of an N-sided polygon. Examples: Input:… Read More »

## Count of smaller rectangles that can be placed inside a bigger rectangle

Given four integers L, B, l, and b, where L and B denote the dimensions of a bigger rectangle and l and b denotes the… Read More »

## Program To Check whether a Triangle is Equilateral, Isosceles or Scalene

Given three integers as X, Y, and Z representing the three sides of a triangle, the task is to check whether the triangle formed by… Read More »

## Count straight lines intersecting at a given point

Given a matrix lines[][] of size N * 3, such that ith row denotes a line having the equation lines[i] * x + lines[i]*y =… Read More »

## Find the remaining vertices of a square from two given vertices

Given the coordinates of any two vertices of a square (X1, Y1) and (X2, Y2), the task is to find the coordinates of the other… Read More »

Given integers A, B, C, and D denoting the length of sides of a Cyclic Quadrilateral, the task is to find the circumradius i.e., the… Read More »

## Count of collisions at a point (X, Y)

Given a matrix arr[][] of size N * 3 such that each row consists of 3 properties defining an element, i.e. (x-coordinate, y-coordinate, speed), and… Read More »

## Count of Right-Angled Triangle formed from given N points whose base or perpendicular are parallel to X or Y axis

Given an array arr[] of N distinct integers points on the 2D Plane. The task is to count the number of Right-Angled Triangle from N… Read More »

## Count of Rectangles with area K made up of only 1s from given Binary Arrays

Given two binary arrays A[] and B[], of length N and M respectively, the task is to find the number of rectangles of area K… Read More »

## Count of nested polygons that can be drawn by joining vertices internally

Given a regular polygon with N sides. The task is to find the count of polygons that can be drawn from the given polygon by… Read More »