## Haversine formula to find distance between two points on a sphere

The Haversine formula calculates the shortest distance between two points on a sphere using their latitudes and longitudes measured along the surface. It is important… Read More »

- Find K Closest Points to the Origin
- Rectangle with minimum possible difference between the length and the width
- Number of triangles that can be formed with given N points
- Check if it is possible to move from (0, 0) to (x, y) in N steps
- Check whether the point (x, y) lies on a given line
- Largest Square that can be inscribed within a hexagon
- Number of squares of side length required to cover an N*M rectangle
- Find a point that lies inside exactly K given squares
- Program for Area Of Square after N-th fold
- Maximum area of rectangle possible with given perimeter
- Maximum points of intersection n lines
- Program to find the Circumcircle of any regular polygon
- Geometric Median
- Largest sphere that can be inscribed in a right circular cylinder inscribed in a frustum
- Program to find the angles of a quadrilateral
- Minimum cuts required to divide the Circle into equal parts
- Apothem of a n-sided regular polygon
- Find maximum volume of a cuboid from the given perimeter and area
- Largest right circular cylinder within a cube
- Minimum Cuts can be made in the Chessboard such that it is not divided into 2 parts
- Find Tangent at a given point on the curve
- Find the cordinates of the fourth vertex of a rectangle with given 3 vertices
- Biggest Reuleaux Triangle inscribed within a Square inscribed in an equilateral triangle
- Biggest Reuleaux Triangle inscirbed within a square inscribed in a semicircle
- Find the area of largest circle inscribed in ellipse
- Minimum squares to evenly cut a rectangle
- Largest cube that can be inscribed within a right circular cone
- Largest right circular cylinder within a frustum
- Find normal at a given point on the curve
- Area of Reuleaux Triangle

The Haversine formula calculates the shortest distance between two points on a sphere using their latitudes and longitudes measured along the surface. It is important… Read More »

Given three points (x1, y1, z1), (x2, y2, z2), (x3, y3, z3). The task is to find the equation of the plane passing through these… Read More »

Given a point (x1, y1) and a line (ax + by + c = 0). The task is to find the perpendicular distance between the… Read More »

Given a point(x, y, z) in 3-D and coefficients of the equation of plane, the task is to find the mirror image of that point… Read More »

Given 3 coordinates x, y and z, the task is to determine the octant of the axial plane. Examples: Input: 2, 3, 4 Output: Point… Read More »

Given a line passing through two points A and B and an arbitrary point C in a 3-D plane, the task is to find the… Read More »

Given the length, width, and height of a triangular prism, the task is to find the volume of the triangular prism. Examples: Input: l =… Read More »

Given four arrays of 3 numbers each which represents sides and angles of two triangles. The task is to check if the two triangles are… Read More »

Given two 3-D co-ordinates we need to find the points on the line joining them. All points have integer co-ordinates. Examples: Input : (-1, 1,… Read More »

Chain code is a lossless compression technique used for representing an object in images. The co-ordinates of any continuous boundary of an object can be… Read More »

Given n points in a plane and no more than two points are collinear, the task is to count the number of triangles in a… Read More »

Given a circular sheet of radius R and the task is to find the total number of rectangles with integral length and width that can… Read More »

In mathematics, a triangular prism is a three-dimensional solid shape with two identical ends connected by equal parallel lines, and have 5 faces, 9 edges,… Read More »

Given four array of 3 numbers each which represents sides and angles of two triangles. The task is to check if two triangles are similar… Read More »

Given a rectangle of sides m and n. Cut the rectangle into smaller identical pieces such that each piece is a square having maximum possible… Read More »