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

- Check if a number is perfect square without finding square root
- Largest perfect square number in an Array
- Count of pairs in an array whose sum is a perfect square
- Smallest perfect square divisible by all elements of an array
- Count number of triplets (a, b, c) such that a^2 + b^2 = c^2 and 1 <= a <= b <= c <= n
- Count numbers upto N which are both perfect square and perfect cube
- Check if the sum of perfect squares in an array is divisible by x
- Closest perfect square and its distance
- Count number of 1s in the array after N moves
- Largest Divisor of a Number not divisible by a perfect square
- Sort perfect squares in an array at their relative positions
- Number of times the largest perfect square number can be subtracted from N
- Smallest and Largest N-digit perfect squares
- Check if product of array containing prime numbers is a perfect square
- Print n numbers such that their sum is a perfect square
- Number of elements with even factors in the given range

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 »

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 »

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 »

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

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 »

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 »

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 »

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 »

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 »

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 »

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 »

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 »

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

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 »

Given a number n, we need to count square numbers smaller than or equal to n. Examples : Input : n = 5 Output :… Read More »