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