## Number of pairs of lines having integer intersection points

Given two integer arrays P[] and Q[], where pi and qj for each 0 <= i < size(P) and 0 <= j < size(Q) represents… Read More »

- Find the diagonal of the Cube
- Check whether two points (x1, y1) and (x2, y2) lie on same side of a given line or not
- Maximum number of region in which N non-parallel lines can divide a plane
- Check if two given Circles are Orthogonal or not
- Game Theory (Normal form game) | Set 2 (Game with Pure Strategy)
- Check whether Quadrilateral is valid or not if angles are given
- Concentric Hexagonal Numbers
- Check if a right-angled triangle can be formed by moving any one of the coordinates
- Count number of pairs of lines intersecting at a Point
- Find area of the larger circle when radius of the smaller circle and difference in the area is given
- Program to calculate area of a rhombus whose one side and diagonal are given
- Find the maximum possible distance from origin using given points
- Find the area of quadrilateral when diagonal and the perpendiculars to it from opposite vertices are given
- Maximum number of line intersections formed through intersection of N planes
- Angle subtended by an arc at the centre of a circle
- Number of triangles that can be formed
- Program to find Area of Triangle inscribed in N-sided Regular Polygon
- C++ Program to Illustrate Trigonometric functions

Given two integer arrays P[] and Q[], where pi and qj for each 0 <= i < size(P) and 0 <= j < size(Q) represents… Read More »

Given that the radius of a hemisphere is changed by a fixed percentage so, the target is to calculate the percentage changed in the volume… Read More »

In this article, we’ll see how to discretize an Ellipse (or a circle) into a polygon. Since a circle is just a specific case of… Read More »

Given the side of a square a which is kept inside a circle. It keeps expanding until all four of its vertices touch the circumference… Read More »

CC BY-SA 4.0, Link The Julia set is associated with those points z = x + iy on the complex plane for which the series… Read More »

Given a water bottle with the shape of a rectangular prism whose base is a square of side x cm and height y cm, the… Read More »

Given a number N, the task is to find the integer points (x, y) such that 0 <= x, y <= N and Manhattan distance… Read More »

Given a cylinder glass with diameter equals D centimeters. The initial level of water in the glass equals H centimeters from the bottom. You drink… Read More »

Given N vertices of the polygon, the task is to find the centroid of the polygon Examples: Input: ar = {{0, 0}, {0, 8}, {8,… Read More »

Given an integer S, the task is to find the coordinates of a triangle whose area is (S / 2). Examples: Input: S = 4… Read More »

Given an array arr[] of N distinct elements and an index range [L, R]. The task is to find whether a crest is present in… Read More »

Given an integer N, the task is to find the sum of interior angles of an N-sided polygon. A plane figure having a minimum of… Read More »

Consider n points on the Cartesian Coordinate Plane. Let point (Xi, Yi) is given a value Vi. A line parallel to y-axis is said to… Read More »

Given an integer N, the task is to divide the number into four parts such that the divided parts can be used to construct a… Read More »

Given a square with N points on each side of the square and none of these points co-incide with the corners of the square. The… Read More »