## Program to calculate area and perimeter of a rhombus whose diagonals are given

Given the length of diagonals of a rhombus, d1 and d2. The task is to find the perimeter and the area of that rhombus. A… Read More »

- How to check if two given line segments intersect?
- Find if two rectangles overlap
- Convex Hull | Set 1 (Jarvis's Algorithm or Wrapping)
- Sum of Manhattan distances between all pairs of points
- Closest Pair of Points using Divide and Conquer algorithm
- Convex Hull | Set 2 (Graham Scan)
- How to check if given four points form a square
- Count maximum points on same line
- Closest Pair of Points | O(nlogn) Implementation
- Path in a Rectangle with Circles
- Puzzle | Minimum distance for Lizard
- Given n line segments, find if any two segments intersect
- Non-crossing lines to connect points in a circle
- Convex Hull using Divide and Conquer Algorithm
- Number of quadrilaterals possible from the given points
- Orientation of 3 ordered points
- Line Clipping | Set 1 (Cohen–Sutherland Algorithm)
- Count ways to divide circle using N non-intersecting chords
- How to check if a given point lies inside or outside a polygon?
- Quickhull Algorithm for Convex Hull
- Paper Cut into Minimum Number of Squares
- Number of rectangles in N*M grid
- Check whether triangle is valid or not if sides are given
- Polygon Clipping | Sutherland–Hodgman Algorithm
- Check if two given circles touch or intersect each other
- Minimum Cost Polygon Triangulation
- Total area of two overlapping rectangles
- Check if it is possible to move from (0, 0) to (x, y) in N steps
- Klee's Algorithm (Length Of Union Of Segments of a line)
- Program for Point of Intersection of Two Lines

Given the length of diagonals of a rhombus, d1 and d2. The task is to find the perimeter and the area of that rhombus. A… Read More »

Given here is a regular decagon, inscribed within a circle of radius r, the task is to find the area of the decagon. Examples: Input:… Read More »

Given focus(x, y), directrix(ax + by + c) and eccentricity e of an ellipse, the task is to find the equation of ellipse using its… Read More »

Given the perimeter of a rectangle, the task is to find the maximum area of a rectangle which can use n-unit length as its perimeter.… Read More »

Given an array arr[] of size M. The array represents segment lengths of different sizes. These segments divide a line beginning with 0. The value… Read More »

You are given n straight lines. You have to find maximum number of point of intersection with these n lines. Examples: Input : n =… Read More »

Given a point (x1, y1, z1) in 3-D and coefficients of the equation of plane, we have to find the foot of perpendicular of a… Read More »

We are given focus(x, y) and directrix(ax + by + c) of a parabola and we have to find the equation of parabola using its… Read More »

Given a rectangular sheet of length l and width w. we need to divide this sheet in the square sheets such that the number of… Read More »

Given the centre of circle (x1, y1) and its radius r, find the equation of the circle having centre (x1, y1) and having radius r.… Read More »

Given two coordinates (x1, y1, z1) and (x2, y2, z2) in 3D, and m and n, find the co-ordinates that divides the line joining (x1,… Read More »

Given three numbers , , . Find Number of squares of dimension required to cover rectangle. Note: It’s allowed to cover the surface larger than… Read More »

Given the number of sides ‘n’ and the length of side ‘s’ of a regular polygon, the task is to find out the Perimeter of… Read More »

Given the radius of the semicircle as r, the task is to find out the Area and Perimeter of that semicircle. Examples: Input: r =… Read More »

Given the x, y and z coordinates of three vectors, the task is to check if they are at equilibrium or not. Examples: Input: x1… Read More »