mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-26 05:59:22 +08:00
@ -17,7 +17,7 @@ public class PerfectCube {
|
||||
int a = (int) Math.pow(number, 1.0 / 3);
|
||||
return a * a * a == number;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Check if a number is perfect cube or not by using Math.cbrt function
|
||||
*
|
||||
|
Reference in New Issue
Block a user