Skip to content

Category Archives: Geometric

Given a rectangle of length L, and width, W, the task is to generate all integral coordinates (X, Y) that lie within a rectangle pf… Read More
Given two arrays X[] and Y[] consisting of N and M integers such that there are N lines parallel to the y-axis and M lines… Read More
Given a string str and four integers X1, Y1, X2 and Y2, where (X1, Y1) denotes the source coordinates and (X2, Y2) denotes the coordinates… Read More
Given two integers L and W representing the dimensions of a grid, and two arrays X[] and Y[] of length N denoting the number of… Read More
Given an array arr[] consisting of N integer coordinates, the task is to find the maximum Manhattan Distance between any two distinct pairs of coordinates.… Read More
Given integers A and B denoting the length of sides of a parallelogram and Y that is the angle between the sides and length of… Read More
Given a number N, the task is to count the number of triangles required to form a House of Cards of N levels. Examples:  Input:… 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 two integers N and K, the task is to find the number of cubes of size K that can be contained in a cube… Read More
Given an integer N, the task is to find the total number of right angled triangles that can be formed such that the length of… Read More
Given two integers N and M, the task is to find the vertex diagonally opposite to the Mth vertex of an N-sided polygon. Examples: Input:… Read More
Given four integers L, B, l, and b, where L and B denote the dimensions of a bigger rectangle and l and b denotes the… Read More
Given three integers as X, Y, and Z representing the three sides of a triangle, the task is to check whether the triangle formed by… Read More
Given a matrix lines[][] of size N * 3, such that ith row denotes a line having the equation lines[i][0] * x + lines[i][1]*y =… Read More
Given the coordinates of any two vertices of a square (X1, Y1) and (X2, Y2), the task is to find the coordinates of the other… Read More

Start Your Coding Journey Now!