# Tag Archives: maths-perfect-square (adsbygoogle = window.adsbygoogle || []).push({});

## Largest perfect square number in an Array

Given an array of n integers. The task is to find the largest number which is a perfect square. Print -1 if there is no… Read More »

## Sort perfect squares in an array at their relative positions

Given an integer array , the task is to sort only the elements which are perfect squares at their relative positions in the array (positions… Read More »

## Largest sub-array whose all elements are perfect squares

Given an array of integer elements, the task is to find the length of the largest sub-array of such that all the elements of the… Read More »

## Count number less than N which are product of perfect squares

Given an Integer N. The task is count numbers P less than N such that P is a product of two distinct perfect squares. Examples:… Read More »

## Largest factor of a given number which is a perfect square

Given a number . The task is to find the largest factor of that number which is a perfect square. Examples: Input : N =… Read More »

## Count pairs (a, b) whose sum of squares is N (a^2 + b^2 = N)

Given a number N, the task is to count all ‘a’ and ‘b’ that satisfy the condition a^2 + b^2 = N. Note:- (a, b)… Read More »

## Program to count number of distinct Squares and Cubes upto N

Given a number N, the task is to find No. of perfect Squares and perfect Cubes from 1 to a given integer, N ( Both… Read More »

## Find the Next perfect square greater than a given number

Given a number N, the task is to find the next perfect square greater than N. Examples: Input: N = 6 Output: 9 9 is… Read More »

## Nth non-Square number

Given n, find the nth number which is not a perfect square among natural numbers (1, 2, 3, 4, 5, 6, … ) Examples: Input… Read More »

## PHP | gmp_perfect_square() Function

The gmp_perfect_square() is an inbuilt function in PHP which checks if the given GMP number(GNU Multiple Precision: For large numbers) is a perfect square or… Read More »

## Minimum digits to remove to make a number Perfect Square

Given a integer n, we need to find how many digits remove from the number to make it a perfect square. Examples : Input :… Read More »

## Perfect Square String

Given a String str and the task is to check sum of ASCII value of all characters is a perfect square or not. Examples :… Read More »

## Permutation of numbers such that sum of two consecutive numbers is a perfect square

Prerequisite: Hamiltonian Cycle Given an integer n(>=2), find a permutation of numbers from 1 to n such that the sum of two consecutive numbers of… Read More »

## Check if given number is perfect square

Given a number, check if it is perfect square or not. Examples : Input : 2500 Output : Yes 2500 is a perfect square. 50… Read More »

## Largest number that is not a perfect square

Given n integers, find the largest number is not a perfect square. Print -1 if there is no number that is perfect square. Examples: Input… Read More »