## 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 »

- Eggs dropping puzzle (Binomial Coefficient and Binary Search Solution)
- Program to find the Hidden Number
- How does Floyd's slow and fast pointers approach work?
- Egg Dropping Puzzle with 2 Eggs and K Floors
- Longest subarray having average greater than or equal to x
- Puzzle | Cut Blue Painted Cube
- Maximum profit after buying and selling the stocks
- Puzzle | Selling Chocolates
- Number of quadrilaterals possible from the given points
- Modular exponentiation (Recursive)
- Minimum steps needed to cover a sequence of points on an infinite grid
- Stormer Numbers
- Program to find minimum number of lectures to attend to maintain 75%
- Probability that two persons will meet
- Final cell position in the matrix
- Check if a number can be expressed as a^b | Set 2
- Check if any permutation of a large number is divisible by 8
- Probability of cutting a rope into three pieces such that the sides form a triangle
- Generating numbers that are divisor of their right-rotations
- Check if a number is a Mystery Number
- Ways to write N as sum of two or more positive integers | Set-2
- Find three integers less than or equal to N such that their LCM is maximum
- Larger of a^b or b^a (a raised to power b or b raised to power a)
- Count number of triplets with product equal to given number with duplicates allowed
- Number of values of b such that a = b + (a^b)
- Minimum increment operations to make the array in increasing order
- Merge Sort with O(1) extra space merge and O(n lg n) time
- Program to find LCM of 2 numbers without using GCD
- Smallest Integer to be inserted to have equal sums
- Find minimum operations needed to make an Array beautiful

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 an array a[] of n elements. The task is to find the array (say b[]) of n + 1 such that Greatest Common Divisor… Read More »

Given a number N. Find the product of first N factorials modulo 1000000007. Constraints: 1 ≤ N ≤ 1e6 Examples: Input : 3 Output :… Read More »

Given n, we need to find sum of 1*1! + 2*2! + ……..+ n*n! Examples: Input: 1 Output: 1 Input: 3 Output: 23 1 *… Read More »

Given n, we need to find sum of 1*1*2! + 2*2*3! + ……..+ n*n*(n+1)! Examples: Input: 1 Output: 2 Input: 3 Output: 242 We may… Read More »

Given a number n, find the nth Pentatope number. A pentatope number is represented by the fifth number in any row of Pascal’s Triangle. As… Read More »

Given a number n, We need to check whether n is aspiring number or not. The number n is called an aspiring number if its… 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 three integers x, y and z (can be negative). The task is to find the length of the smallest array that can be made… Read More »

Given Center coordinate (c1, c2) and one coordinate (x1, y1) of the diameter of a circle, find the other end coordinate point (x2, y2) of… Read More »

Interpolation is an estimation of a value within two known values in a sequence of values. Newton’s divided difference interpolation formula is a interpolation technique… Read More »

We are given a number n, we need to find n-th centered octahedral number. Description: A centered octahedral number is a figurate number. It counts… 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 »