# Tag Archives: maths-perfect-cube

## Check if a number can be represented as sum of two consecutive perfect cubes

Given an integer N, the task is to check if this number can be represented as the sum of two consecutive perfect cubes or not.… Read More »

## C Program to check whether a number is a Perfect Cube or not

Given a number N, the task is to write C program to check if the given number is perfect cube or not. Examples: Input: N… Read More »

## Check whether a number can be represented as difference of two consecutive cubes

Given a number N, the task is to check if the number N can be represented as the difference of two consecutive cubes or not.… Read More »

## Perfect Cube factors of a Number

Given an integer N, the task is to find the number of factors of N that are a perfect cube. Examples: Input: N = 27Output:… Read More »

## Count of subarrays having sum as a perfect cube

Given an array arr[], the task is to count the subarrays having sum as a perfect cube. Examples: Input: arr[] = {6, 10, 9, 2,… 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… Read More »

## Previous perfect square and cube number smaller than number N

Given an integer N, the task is to find the previous perfect square or perfect cube smaller than the number N. Examples: Input: N =… Read More »

## Check if number formed by joining two Numbers is Perfect Cube

Given two numbers a and b, the task is to check whether the concatenation of a and b is a perfect cube or not. Examples:… Read More »

## Print N numbers such that their product is a Perfect Cube

Given a number N, the task is to find distinct N numbers such that their product is a perfect cube. Examples: Input: N = 3… Read More »

## Count of pairs in an Array whose sum is a Perfect Cube

Given an array arr of distinct elements of size N, the task is to find the total number of pairs in the array whose sum… Read More »

## Perfect Cube

Given a number N, the task is to check whether the given number N is a perfect cube or not. Examples: Input: N = 216… Read More »

## Number of times the largest Perfect Cube can be subtracted from N

Given a number N, at every step, subtract the largest perfect cube( ≤ N) from N. Repeat this step while N > 0. The task… Read More »

## Least number to be added to or subtracted from N to make it a Perfect Cube

Given a number N, Find the minimum number that needs to be added to or subtracted from N, to make it a perfect cube. If… Read More »

## Sum of all Perfect Cubes lying in the range [L, R] for Q queries

Given Q queries in the form of 2D array arr[][] whose every row consists of two numbers L and R which signifies the range [L,… Read More »

## Smallest perfect cube in an array

Given an array arr[] of n integers. The task is to find the smallest perfect cube from the array. Print -1 if there is no… Read More »