refactor: migrate backend dt
This commit is contained in:
@@ -80,7 +80,7 @@ func Str2Bool(s string) bool {
|
||||
|
||||
// GCD returns the greatest common divisor of a and b via the Euclidean
|
||||
// algorithm.
|
||||
func GCD(a, b int) int {
|
||||
func GCD(a, b int64) int64 {
|
||||
for b != 0 {
|
||||
a, b = b, a%b
|
||||
}
|
||||
@@ -88,6 +88,6 @@ func GCD(a, b int) int {
|
||||
}
|
||||
|
||||
// LCM returns the least common multiple of a and b.
|
||||
func LCM(a, b int) int {
|
||||
func LCM(a, b int64) int64 {
|
||||
return (a * b) / GCD(a, b)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user