## Inverse Permutation

Given an array of size n of integers in range from 1 to n, we need to find the inverse permutation of that array. An… Read More »

Given an array of size n of integers in range from 1 to n, we need to find the inverse permutation of that array. An… Read More »

Given the side of a square then find the area of a Circumscribed circle around it. Examples: Input : a = 6 Output : Area… Read More »

Given two numbers say a and b. Print their XOR after making the lengths of their binary representation equal by adding trailing zeros to the… Read More »

Given n, of a n x n chessboard, find the proper placement of queens on chessboard. Previous Approach : N Queen Recommended: Please try your… Read More »

We have a sorted array with duplicate elements and we have to find the index of last duplicate element and print index of it and… Read More »

Newman-Conway numbers is the one which generates the following integer sequence. 1 1 2 2 3 4 4 4 5 6 7 7….. and follows… Read More »

There is a m*n rectangular matrix whose top-left(start) location is (1, 1) and bottom-right(end) location is (m*n). There are k circles each with radius r.… Read More »

Find the sum up to n terms of the sequence: 5 + 55 + 555 + … up to n. Examples: Input : 2 Output:… Read More »

Prerequisite : K nearest neighbours Introduction Say we are given a data set of items, each having numerically valued features (like Height, Weight, Age, etc).… Read More »

A nonagonal number is a figurate number that extends the concept of triangular and square numbers to the nonagon. Specifically, the nth nonagonal numbers counts… Read More »

Given an array of numbers, find the number among them such that all numbers are divisible by it. If not possible print -1. Examples: Input… Read More »

Given a fraction series. Find the H.C.F of a given fraction series. Examples: Input : [{2, 5}, {8, 9}, {16, 81}, {10, 27}] Output :… Read More »

Given a mathematical series as 3, 9, 21, 41, 71… For a given integer n, you have to find the nth number of this series.… Read More »

Given a ‘n’ digit number x, check if it is a plus perfect number or not. A number is plus perfect number if it is… Read More »

Given a matrix and the task is to check matrix is involutory matrix or not. Involutory Matrix: A matrix is said to be involutory matrix… Read More »