## Side of a regular n-sided polygon circumscribed in a circle

Given two integers r and n where n is the number of sides of a regular polygon and r is the radius of the circle… Read More »

## Largest Square that can be inscribed within a hexagon

Given a regular hexagonof side length a, the task is to find the area of the largest square that can be inscribed within it. Examples:… Read More »

## Area of the Largest Triangle inscribed in a Hexagon

Given here is a regular hexagon, of side length a, the task is to find the area of the biggest triangle that can be inscribed… Read More »

## Volume of cube using its space diagonal

Given the length of space diagonal of a cube as d. The task is to calculate the volume occupied by the cube with the given… Read More »

## Area of hexagon with given diagonal length

You are given the length of the diagonal of a hexagon, d. Your task is to find the area of that hexagon. Examples: Input :… Read More »

## Perimeter and Area of Varignon’s Parallelogram

Given a and b are the lengths of the diagonals AC and BD of a quadrilateral ABCD with the area of quadrilateral as s. The… Read More »

## Area of a leaf inside a square

Given an integer a as the side of the square ABCD. The task is to find the area of the leaf AECFA inside the square… Read More »

## Largest right circular cylinder within a frustum

Given a frustum of height , top-radius & base-radius . The task is to find the volume of biggest right circular cylinder that can be… Read More »

## Largest right circular cylinder within a cube

Given a cube of side length a. The task is to find the volume of biggest right circular cylinder that can be inscribed within it.… Read More »

## Area of a triangle inside a parallelogram

Given the base and height of the parallelogram ABCD are b and h respectively. The task is to calculate the area of the triangle ▲ABM… Read More »

## Length of rope tied around three equal circles touching each other

Given r is the radius of three equal circles touching each other. The task is to find the length of the rope tied around the… Read More »

## Number of triangles that can be formed with given N points

Given X and Y coordinates of N points on a Cartesian plane. The task is to find the number of possible triangles with the non-zero… Read More »

## Area of Incircle of a Right Angled Triangle

Given the P, B and H are the perpendicular, base and hypotenuse respectively of a right angled triangle. The task is to find the area… Read More »

## Area of Circumcircle of a Right Angled Triangle

Given an integer C which is the length of the hypotenuse of a right angled triangle of a circumcircle passing through the centre of the… Read More »

## Find a point that lies inside exactly K given squares

Given an integer K and an array arr each of whose element x represents a square with two of its vertices as (0, 0) and… Read More »