Largest hexagon that can be inscribed within a square

Given side of a square a, the task is to find the side of the largest hexagon that can be inscribed within the given square.… Read More »

Largest hexagon that can be inscribed within an equilateral triangle

Given an equilateral triangle of side length a, the task is to find the largest hexagon that can be inscribed within it. Examples: Input: a… Read More »

Diagonal of a Regular Hexagon

Given an integer a which is the side of a regular hexagon, the task is to find and print the length of its diagonal. Examples:… Read More »

Diagonal of a Regular Pentagon

Given an integer a which is the side of a regular pentagon, the task is to find and print the length of its diagonal. Examples:… Read More »

Area of Reuleaux Triangle

Given an integer h which is the side of an equilateral triangle formed by the same vertices as the Reuleaux triangle, the task is to… Read More »

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 »