public class MathUtil extends Object
Constructor and Description |
---|
MathUtil() |
Modifier and Type | Method and Description |
---|---|
static long |
factorial(int n)
Calculate the factorial of $n$.
|
static int |
log2(int n)
Calculate the floor of the binary logarithm of $n$.
|
Copyright © 2019. All rights reserved.