## Centered cube number

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 Enneadecagonal number. An Enneadecagonal number is a nineteen-sided polygon in mathematics. It belongs to… 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 »

## Centered pentagonal number

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 »

## Reflection of a point at 180 degree rotation of another point

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 »

## Find maximum and minimum distance between magnets

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 »

## Sum of Areas of Rectangles possible for an array

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

## Maximize a value for a semicircle of given radius

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 »

## Maximum points of intersection n circles

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

## Slope of perpendicular to line

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

## Program to check if the points are parallel to X axis or Y axis

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 »

## Find the other end point of a line with given one end and mid

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 »

## Number of ordered points pair satisfying line equation

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 equation of a circle as string, find area

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 »