## Count the number of rhombi possible inside a rectangle of given size

Given a rectangle of height H and width W which has the bottom left corner at (0, 0). The task is to count the number… Read More »

## Shortest path on a Square

Given side of a square n and two points (x1, y1) and (x2, y2) on the boundaries of the given square. The task is to… Read More »

## Find the cordinates of the fourth vertex of a rectangle with given 3 vertices

Given an N * M grid. It contains exactly three ‘*’ and every other cell is a ‘.’ where ‘*’ denotes a vertex of a… Read More »

## Maximum given sized rectangles that can be cut out of a sheet of paper

Given the length L and breadth B of a sheet of paper, the task is to find the maximum number of rectangles with given length… Read More »

## Find the Side of the smallest Square that can contain given 4 Big Squares

Given sides of four small squares. You have to find the side of the smallest square such that it can contain all given 4 squares… Read More »

## Rectangle with minimum possible difference between the length and the width

Given an integer area, the task is to find the length and breadth of a rectangle with the given area such that the difference between… Read More »

## Biggest Square that can be inscribed within an Equilateral triangle

Given here is an equilateral triangle of side length a. The task is to find the side of the biggest square that can be inscribed… Read More »

## 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 »

## Find minimum area of rectangle with given set of coordinates

Given an array of set of points in the X-Y plane. The task is to find the minimum area of a rectangle that can be… Read More »

## Count the number of rectangles such that ratio of sides lies in the range [a,b]

Given the length and breadth of N rectangles and a range i.e. [a, b], the task is to count the number of rectangles whose sides(larger/smaller)… Read More »

## Minimum squares to evenly cut a rectangle

Given a rectangular sheet of length l and width w. we need to divide this sheet in the square sheets such that the number of… Read More »

## Number of squares of side length required to cover an N*M rectangle

Given three numbers , , . Find Number of squares of dimension required to cover rectangle. Note: It’s allowed to cover the surface larger than… Read More »

## Find the number of rectangles of size 2*1 which can be placed inside a rectangle of size n*m

Given two integers , . Find the number of rectangles of size 2*1 can be placed inside a rectangle of size n*m. Note: No two… Read More »