# Tag Archives: square-rectangle

Given a positive integer N, the task is to check if N is a Squarable Number or not. An integer “N” is said to be… Read More
Given an integer N denoting the perimeter of a rectangle. The task is to find the number of distinct rectangles possible with a given perimeter. … Read More
We have one 2D array, filled with zeros and ones. We have to find the starting point and ending point of all rectangles filled with… Read More
We have one 2D array, filled with zeros and ones. We have to find the starting point and ending point of all rectangles filled with… Read More
Given two integers L and B representing the length and breadth of a rectangle and a coordinate (X, Y) representing a point on the cartesian… Read More
Given an array arr[][] consisting of pair of integers denoting coordinates. The task is to count the total number of rectangles that can be formed… Read More
Given a Matrix grid[][] of size NxM where N is number of rows and M is number of columns. The task is to form a… Read More
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
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
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