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

# Category Archives: Geometric

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

Given an integer A, denoting the length of a cube, the task is to find the shortest distance between the diagonal of a cube and… Read More

Given a grid consisting of horizontal & vertical bars of size (N + 2) x (M + 2) and two arrays H[] and V[] denoting… Read More

Given two integers H1 and R representing the height and radius of a cone and two integers H2 and S representing the height and length… Read More

Given an array arr[][] of dimension N * 2 representing the co-ordinates of N points and an array Q[] consisting of M integers, the task… Read More

Given a, b, and c the coefficients of X2, X, and the constant term in the general equation of the parabola , the task is to… Read More