# Category Archives: Geometric

Given two Complex Numbers Z1 and Z2 in the Cartesian form, the task is to convert the given complex number into polar form and perform… Read More
Given two arrays X[] and Y[], representing points on X and Y number lines, such that every similar-indexed array element forms a line segment, i.e.… Read More
Given an array arr[][] of size N, consisting of pairs of coordinates such that arr[i] and arr[i] represents the X and Y coordinates in a… Read More
Given six integers representing the vertices of a triangle, say A(x1, y1), B(x2, y2), and C(x3, y3), the task is to find the coordinates of… Read More
Given a string S representing a sequence of moves(L, R, U, and D) and an integer R representing the radius of a circle whose center… Read More
In this article, we will discuss “Diagram to Histogram” also known as “Interval Finding”. While dealing with statistical data, diagrams are represented with single points(or… Read More
Given an integer K, and two arrays X[] and Y[] both consisting of N integers, where (X[i], Y[i]) is a coordinate in a plane, the… Read More
Given an array arr[] consisting of magnitudes of two N-Dimensional vectors A and B, the task is to find the angle between the two vectors.… Read More
Given two integers A and B, representing the length of semi-major and semi-minor axis of an Ellipse with general equation (x2 / A2) + (y2… 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 two integers L and B representing the length and breadth of a rectangle, the task is to find the maximum number of largest possible… Read More
Given an integer A representing the external angle (in degrees) of a regular convex polygon, the task is to find the sum of the sides… Read More
Given an array arr[] consisting of coordinates of N points on an XY-plane, the task is to find the sum of squared distances between all… 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 an ellipse with half the major and minor axes length A & B, the task is to find the area of the largest isosceles… Read More