mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-27 06:23:08 +08:00
@ -35,10 +35,7 @@ public class JugglerSequence {
|
||||
if (n % 2 == 0) {
|
||||
temp = (int) Math.floor(Math.sqrt(n));
|
||||
} else {
|
||||
temp =
|
||||
(int) Math.floor(
|
||||
Math.sqrt(n) * Math.sqrt(n) * Math.sqrt(n)
|
||||
);
|
||||
temp = (int) Math.floor(Math.sqrt(n) * Math.sqrt(n) * Math.sqrt(n));
|
||||
}
|
||||
n = temp;
|
||||
seq.add(n + "");
|
||||
|
Reference in New Issue
Block a user