Given an array arr[] consisting of (4 * N + 1) pairs of coordinates representing the coordinates of the corners of any N squares such… Read More

# Tag Archives: square-rectangle

Given a rectangle of length L and breadth B, the task is to print the maximum integer altitude possible of the largest triangle that can… Read More

Given two positive integers h and w representing the height h and width w which forms a rectangle. Also, there are two arrays of integers… Read More

Make N pairs from Array as (X, Y) coordinate point that are enclosed inside a minimum area rectangle

Given a number N, and an array A[] of size 2N, the task is to make N pairs of these array elements and place them… Read More

Given a positive integer N representing the side of a square, the task is to find the area of a triangle formed by connecting the… Read More

Given two positive integers W and H and N rectangles of dimension W*H, the task is to find the smallest size of the square required… Read More

Given two 2D arrays rectangle[][] and triangle[][], representing the coordinates of vertices of a rectangle and a triangle respectively, and another array points[][] consisting of… Read More

Given a positive integer S, the task is to find the length of diagonal of a square having sides of length S. Examples: Input: S… Read More

Given two arrays X[] and Y[], each of length 4, where (X[0], Y[0]) and (X[1], Y[1]) represents the bottom left and top right corners of… Read More

Given three positive integers N, M, and A, the task is to count the number of rectangles with area equal to A present in an… Read More

Given a 2D array A[][2] of size N (1 ≤ N ≤ 103), where A[i][0] and A[i][1] denotes the length and breadth of rectangle i… Read More

Given a 2D array rectangle[][] representing vertices of a rectangle {(0, 0), (L, 0), (0, B), (L, B)} of dimensions L * B, and another… Read More

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

Given a rectangle of dimensions L and W. The task is to find the maximum area of a rectangle that can be circumscribed about a… Read More