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 not....
read more
Check if a given number is a Perfect square using Binary Search
Check if a given number N is a perfect square or not. If yes then return the number of which it is a perfect square, Else print -1....
read more
Check if the sum of perfect squares in an array is divisible by x
Given an array arr[] and an integer x, the task is to check whether the sum of all the perfect squares from the array is divisible by x or not. If divisible then print Yes else print No....
read more
Construct an Array such that cube sum of all element is a perfect square
Given the size of array N, the task is to construct an array of size N with positive integer elements such that the cube sum of all elements of this array is a perfect square.Note: Repetitions of integers are allowed.Example:...
read more
Check if a number is perfect square without finding square root
Check whether a number is a perfect square or not without finding its square root....
read more
Count quadruplets(A, B, C, D) till N such that sum of square of A and B is equal to that of C and D
Given a number N, the task is to find the number of quadruples such that a2 + b2 = c2 + d2 where (1 <= a, b, c, d <= N)....
read more
Java Program to Generate a matrix having sum of secondary diagonal equal to a perfect square
Given an integer N, the task is to generate a matrix of dimensions N x N using positive integers from the range [1, N] such that the sum of the secondary diagonal is a perfect square....
read more
Check whether the product of every subsequence is a perfect square or not
Given an array arr[] consisting of N positive integers, the task is to check if the product of elements of every subsequence of the given array arr[] is a perfect square or not. If found to be true, then print Yes. Otherwise, print No....
read more
Check whether the number can be made perfect square after adding K
Given two numbers N and K, the task is to check whether the given number N can be made a perfect square after adding K to it.Examples:...
read more
Check if the sum of a subarray within a given range is a perfect square or not
Given an array arr[] of size N and an array range[], the task is to check if the sum of the subarray {range[0], .. , range[1]} is a perfect square or not. If the sum is a perfect square, then print the square root of the sum. Otherwise, print -1....
read more
Sum of all perfect square divisors of numbers from 1 to N
Given a number N, the task is to find the sum of all the perfect square divisors of numbers from 1 to N. Examples:...
read more
Count numbers upto N which are both perfect square and perfect cube
Given a number N. The task is to count total numbers under N which are both perfect square and cube of some integers.Examples:...
read more