Skip to content

Category Archives: Geometric

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 two integers r1 and r2, representing the radius of two circles, the task is to find the radius of the circle having area equal… Read More
Given L, B, and H which denotes the length, breadth, and height of a cuboid, the task is to find the minimum number of cuboids… Read More
In this article, we will discuss how to draw circles using Bresenham Equation and Polar Equation. Circle Drawing Algorithm It is not easy to display… Read More
Given three pairs of integers A(x, y), B(x, y), and C(x, y), representing the coordinates of a right-angled triangle, the task is to find the… Read More
Given a 2D array point[][] with each row of the form {X, Y}, representing the co-ordinates of a polygon in either clockwise or counterclockwise sequence,… Read More
Given a 2D array arr[][], where each row is of the form {start, end} representing the start and endpoints of each line segment on the… Read More
Given a sorted array, arr[] of size N representing the positions of the ith point on X-axis and an integer K, the task is to… Read More
Given an array arr[] consisting of N pair of integers representing coordinates of N points, the task is to find the area of the largest… Read More
Given two arrays arr1[] and arr2[] of N denoting N coordinates of the form (arr1[i], 0) and M positive integers denotingM coordinates of the form… 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 regular polygon of N sides, the task is to find the maximum sided polygon that can be inscribed inside the given polygon by… Read More
The task is to find all possible triangles having the same perimeter and area. Examples:  The triangle having sides (6, 8, 10) have the same… Read More
Given an array triangles[][] consisting of N triangles of the form {x1, y1, x2, y2, x3, y3} and an array cuts[] consisting of M horizontal… 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

Start Your Coding Journey Now!