## Centered Octagonal Number

Given a number n, find the nth centered octagonal number. A centered octagonal number represents an octagon with a dot in the centre and others… Read More »

- Puzzle | Minimum distance for Lizard
- Number of quadrilaterals possible from the given points
- Check if it is possible to move from (0, 0) to (x, y) in N steps
- Check if any square (with one colored cell) can be divided into two equal parts
- Area of largest triangle that can be inscribed within a rectangle
- Area of a circle inscribed in a regular hexagon
- Find a point such that sum of the Manhattan distances is minimized
- Number of squares of side length required to cover an N*M rectangle
- Check if a point is inside, outside or on the ellipse
- Program to find the Radius of the incircle of the triangle
- Program to find the Circumcircle of any regular polygon
- Number of triangles that can be formed with given N points
- Check if a point is inside, outside or on the parabola
- Program to find the angles of a quadrilateral
- Circumradius of the rectangle
- Find area of triangle if two vectors of two adjacent sides are given
- Check if it is possible to rearrange rectangles in a non-ascending order of breadths
- Largest trapezoid that can be inscribed in a semicircle
- Area of Largest rectangle that can be inscribed in an Ellipse
- Maximum number of pieces in N cuts
- Program to find the Centroid of the triangle
- Program to find the Volume of an irregular tetrahedron
- Find normal at a given point on the curve
- Find the altitude and area of an isosceles triangle
- Intersecting rectangle when bottom-left and top-right corners of two rectangles are given
- Minimum squares to cover a rectangle
- Find a point that lies inside exactly K given squares
- Area of the circumcircle of any triangles with sides given
- Check if a point lies on or inside a rectangle | Set-2
- Area of a square inscribed in a circle which is inscribed in an equilateral triangle

Given a number n, find the nth centered octagonal number. A centered octagonal number represents an octagon with a dot in the centre and others… Read More »

Given a number n, find the n-th centered cube number. The Centered cube number counts the number of points which are formed by a point… Read More »

Given a number n, the task is to find the nth heptadecagonal number . A heptadecagonal number is class of figurate number. It has seventeen… Read More »

Given a number n, the task is to find the nth hexadecagonal number. A Hexadecagonal number is class of figurate number and a perfect squares.… Read More »

Given an integer n, find the nth Centered pentagonal number. A Centered Pentagonal Number is a centered figurate number that represents a pentagon with a… Read More »

Given two points coordinates (x1, y1) and (x2, y2)on 2D plane. The task is to find the reflection of (x1, y1) at 180 degree rotation… Read More »

Given coordinates of two pivot points (x0, y0) & (x1, y1) in coordinates plane. Along with each pivot, two different magnets are tied with the… Read More »

Given an array, task is to compute the sum of all possible maximum area rectangle which can be formed from the array elements. Also, you… Read More »

We are given a semi circle with radius R. We can take any point on the circumference let it be P.Now, from that point P… Read More »

Given a number n, we need to find the maximum number of times n circles intersect. Examples: Input : n = 2 Output : 2… Read More »

You are given the slope of one line (m1) and you have to find the slope of another lie which is perpendicular to the given… Read More »

Given n points, we need to check if these n points are parallel to X axis or Y axis or to No axis. 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 »