small refactor
This commit is contained in:
@@ -4,10 +4,7 @@ import kotlin.math.log2
|
|||||||
|
|
||||||
internal fun log2(
|
internal fun log2(
|
||||||
value: Int,
|
value: Int,
|
||||||
): Double {
|
) = log2(value.toDouble())
|
||||||
val x = value.toDouble()
|
|
||||||
return log2(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
internal fun gcd(
|
internal fun gcd(
|
||||||
a: Int,
|
a: Int,
|
||||||
|
|||||||
Reference in New Issue
Block a user