Data Structure
Java
Python
HTML
Interview Preparation
Interview Prep
Tutorials
Tracks
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.0K+ articles
Mathematical
5.1K+ articles
Arrays
4.2K+ articles
Searching
1.0K+ articles
Numbers
327+ articles
maths-power
181+ articles
Natural Numbers
131+ articles
maths-perfect-square
114+ articles
maths-cube
39+ articles
maths-perfect-cube
19 posts
Recent Articles
Popular Articles
Check if a number can be represented as product of two positive perfect cubes
Last Updated: 23 July 2025
Given a positive integer N, the task is to check if the given number N can be represented as the product of two positive perfect cubes or not. If it is possible, then prin...
read more
Searching
Mathematical
Hash
DSA
maths-cube
maths-perfect-cube
Check if a number can be represented as difference of two positive perfect cubes
Last Updated: 23 July 2025
Given a positive integer N, the task is to check whether N can be represented as the difference between two positive perfect cubes or not. If found to be true, then print ...
read more
DSA
cpp-map
maths-perfect-cube
Count of subarrays having product as a perfect cube
Last Updated: 23 July 2025
Given an array arr[] consisting of N positive integers, the task is to count the number of subarrays with product of its elements equal to a perfect cube.Examples:Input: a...
read more
Searching
Mathematical
Technical Scripter
Technical Scripter 2020
DSA
Arrays
subarray
maths-perfect-cube
Find all Ramanujan Numbers that can be formed by numbers upto L
Last Updated: 15 July 2025
Given a positive integer L, the task is to find all the Ramanujan Numbers that can be generated by any set of quadruples (a, b, c, d), where 0 a, b, c, d ? L.Ramanujan Nu...
read more
DSA
Numbers
maths-perfect-cube
Check if a number can be represented as sum of two positive perfect cubes
Last Updated: 23 July 2025
Given an integer N, the task is to check if N can be represented as the sum of two positive perfect cubes or not.Examples:Input: N = 28Output: YesExplanation:Since, 28 = 2...
read more
DSA
maths-perfect-cube
Check if a number can be represented as sum of two consecutive perfect cubes
Last Updated: 15 July 2025
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.Examples:Input: N = 35Output: YesExplanation:...
read more
Greedy
Searching
Mathematical
DSA
maths-power
maths-perfect-cube
C Program to check whether a number is a Perfect Cube or not
Last Updated: 15 July 2025
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 = 216Output: YesExplanation:As 216 = 6*6*6.Therefore...
read more
C Language
Binary Search
maths-cube
maths-power
maths-perfect-cube
Maths
Perfect Cube factors of a Number
Last Updated: 15 July 2025
Given an integer N, the task is to find the number of factors of N that are a perfect cube.Examples:Input: N = 27Output: 2Explanation :There are 2 factors of 27 (1, 27) th...
read more
DSA
prime-factor
Numbers
factor
maths-perfect-cube
Check whether a number can be represented as difference of two consecutive cubes
Last Updated: 01 October 2023
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. If Yes then print those numbers else print No....
read more
DSA
maths-cube
maths-perfect-cube
Natural Numbers
Count of subarrays having sum as a perfect cube
Last Updated: 15 November 2022
Given an array arr[], the task is to count the subarrays having sum as a perfect cube.Examples:Input: arr[] = {6, 10, 9, 2, 1, 113}Output: 3Explanation:The subarrays with ...
read more
C++ Quiz
DSA
Arrays
subarray
maths-perfect-cube
Construct an Array such that cube sum of all element is a perfect square
Last Updated: 05 September 2022
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 squ...
read more
DSA
maths-perfect-square
maths-cube
maths-perfect-cube
Previous perfect square and cube number smaller than number N
Last Updated: 12 July 2025
Given an integer N, the task is to find the previous perfect square or perfect cube smaller than the number N.Examples:Input: N = 6Output:Perfect Square = 4Perfect Cube = ...
read more
DSA
maths-perfect-square
maths-perfect-cube
Print N numbers such that their product is a Perfect Cube
Last Updated: 12 July 2025
Given a number N, the task is to find distinct N numbers such that their product is a perfect cube.Examples:Input: N = 3Output: 1, 8, 27Explanation:Product of the output n...
read more
DSA
maths-cube
maths-perfect-cube
Natural Numbers
Check if number formed by joining two Numbers is Perfect Cube
Last Updated: 12 July 2025
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:Input: a = 6, b = 4Output: YesConcatenating 6 and 4 ...
read more
DSA
maths-perfect-cube
Count of pairs in an Array whose sum is a Perfect Cube
Last Updated: 12 July 2025
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 is a perfect cube.Examples:Input: arr[] = {2, 3, 6,...
read more
Mathematical
DSA
Arrays
maths-perfect-cube
1
2