## Count number of pairs of lines intersecting at a Point

Given N lines are in the form a*x + b*y = c (a>0 or a==0 & b>0). Find the number of pairs of lines intersecting… Read More »

- Check if it is possible to create a polygon with given n sides
- Check whether the triangle is valid or not if angles are given
- Number of triangles formed by joining vertices of n-sided polygon with one side common
- Check if a circle lies inside another circle or not
- Find the diagonal of the Cube
- Number of triangles formed by joining vertices of n-sided polygon with two common sides and no common sides
- Determine the number of squares of unit area that a given line will pass through.
- Count of distinct rectangles inscribed in an equilateral triangle
- Check whether two points (x1, y1) and (x2, y2) lie on same side of a given line or not
- Find the original coordinates whose Manhattan distances are given
- Maximum and Minimum value of a quadratic function
- Shortest distance between a point and a circle
- Line Clipping | Set 2 (Cyrus Beck Algorithm)
- Area of a Regular Pentagram
- Check whether Quadrilateral is valid or not if angles are given
- Find the area of the shaded region formed by the intersection of four semicircles in a square
- Concentric Hexagonal Numbers
- Window to Viewport Transformation in Computer Graphics with Implementation
- Number of common tangents between two circles if their centers and radius is given
- Program to find the number of region in Planar Graph
- Ratio of the distance between the centers of the circles and the point of intersection of two direct common tangents to the circles
- Game Theory (Normal form game) | Set 2 (Game with Pure Strategy)
- Area of the biggest ellipse inscribed within a rectangle
- Length of the chord of the circle whose radius and the angle subtended at the center by the chord is given
- Total number of triangles formed when there are H horizontal and V vertical lines
- Maximum number of region in which N non-parallel lines can divide a plane
- Length of the normal from origin on a straight line whose intercepts are given
- Angle subtended by the chord when the angle subtended by another chord of same length is given
- Program to calculate area of inner circle which passes through center of outer circle and touches its circumference
- Length of direct common tangent between the two non-intersecting Circles

Given N lines are in the form a*x + b*y = c (a>0 or a==0 & b>0). Find the number of pairs of lines intersecting… Read More »

Given N‘, the number of non-parallel lines. The task is to find the maximum number of regions in which these lines can divide a plane.… Read More »

Given three integers a, b and c which represents coefficients of the equation of a line a * x + b * y – c… Read More »

Given three integers d, h1, h2 where d represents the length of the diagonal of a quadrilateral. h1 and h2 represents the lengths of the… Read More »

Given a side of the cube a. The task is to find the length of the diagonal of the cube. Examples: Input : a =… Read More »

The following numbers form the concentric hexagonal sequence : 0, 1, 6, 13, 24, 37, 54, 73, 96, 121, 150 …… The number sequence forms… Read More »

Game Theory (Normal – form game) | Set 1 (Introduction) Please go through the above article before proceeding. Given a payoff matrix. The task is… Read More »

Given two integers r and d where r is the radius of the smaller circle and d is the difference of the area of this… Read More »

Given four integers A, B, C and D which represents the four angles of a Quadrilateral in degrees. The task is to check whether the… Read More »

Given three integers A, B and C which are the three angles of a possible triangle in degrees, the task is to check whether the… Read More »

An ellipse is described as a curve on a plane that surrounds two focal points such that the sum of the distances to the two… Read More »

Given the vertices of a triangle and length of its sides. A circle is inscribed in a triangle. The task is to find the incenter… Read More »

Given N ranges of type1 ranges and M ranges of type2.The task is to find the total number of intersections between all possible type1 and… Read More »

Background: Cyrus Beck is a line clipping algorithm that is made for convex polygons. It allows line clipping for non-rectangular windows, unlike Cohen Sutherland or… Read More »

Kite is something like rhombus but in Kite, the adjacent sides are equal and diagonals are generally not equal. Method 1: When bboth the diagonals… Read More »