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

# Tag Archives: Geometric-Lines

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 string S representing a sequence of moves(L, R, U, and D) and two integers X and Y representing the starting coordinates, the task… 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

Straight Lines in 3D space are generally represented in two forms Cartesian Form and Vector Form. Hence the angles between any two straight lines in… 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

Given three integers P, Q, and R representing 3 non-collinear points on a 2D plane with their respective x and y-coordinates, the task is to… Read More

Given two integers a and b representing the length of the two bases, and the two integers p1 and p2 representing the non-parallel sides of… Read More

We all know the very popular equation of the straight line Y = m . X + C which a straight line in a plane.… Read More

In 3D space, two lines can either intersect each other at some point, parallel to each other or they can neither be intersecting nor parallel… Read More

Given two arrays X[] and Y[], each of length 4, where (X[0], Y[0]) and (X[1], Y[1]) represents the bottom left and top right corners of… Read More

Given two pairs (X, Y), (P, Q) and R the coordinate of the center of semi-circle, coordinate of the intersection of semicircle and diameter of… Read More

Given equations of two lines (a1, b1, c1) and (a2, b2, c2) such that (ai, bi, ci) are the coefficients of X2, X and a… Read More