## Find the other end point of a line with given one end and mid

Given a midpoint of line(m1, m2) and one coordinate of a line (x1, y1), find the other end point(x2, y2) of a line Examples: Input… Read More »

Given a midpoint of line(m1, m2) and one coordinate of a line (x1, y1), find the other end point(x2, y2) of a line Examples: Input… Read More »

Given an array of n integers, slope of a line i. e., m and the intercept of the line i.e c, Count the number of… Read More »

Given an equation of the circle X2 + Y2 = R2 whose center at origin (0, 0) and the radius is R. The task is… Read More »

OpenCV provides many drawing functions to draw geometric shapes and write text on images. Let’s see some of the drawing functions and draw geometric shapes… Read More »

Given a number X which represents the floor of a matchstick pyramid, write a program to print the total number of matchstick required to form… Read More »

Problem – Find the vertex, focus and directrix of a parabola when the coefficients of its equation are given. A set of points on a… Read More »

Given two arrays X[] and Y[] with n-elements, where (Xi, Yi) represent a point on coordinate system, find the smallest rectangle such that all points… Read More »

Given two overlapping rectangles on a plane. We are given bottom left and top right points of the two rectangles. We need to find the… Read More »

Given three positive integers a, b and d. You are currently at origin (0, 0) on infinite 2D coordinate plane. You are allowed to jump… Read More »

Given the length of sides of an equilateral triangle. We need to write a program to find the area of Circumcircle of the given equilateral… Read More »

Given two coordinates of a line as (x1, y1) and (x2, y2), find if the line passing through these points also passes through origin or… Read More »

Given two circles of radius r and R, both have their centre at the origin. Now, given another circle of radius r1 and centre at… Read More »

Given a standard football, regular hexagons and pentagons are drawn on it as shown in the picture. Find out the number of hexagons and pentagons.… Read More »

Enneagon is a polygon with 9 sides and 9 internal angles. Enneagon is also known as Nonagon. A regular nonagon has an internal angle of… Read More »

Given the side of a square then find the area of a Circumscribed circle around it. Examples: Input : a = 6 Output : Area… Read More »