2020 Day 24 Complete
I made some minor changes to helpers/coordinate... I probably need to go back and fix several previous years/days.
This commit is contained in:
@@ -340,3 +340,17 @@ func IsPrime(value int) bool {
|
||||
}
|
||||
return value > 1
|
||||
}
|
||||
|
||||
func Min(v1, v2 int) int {
|
||||
if v1 < v2 {
|
||||
return v1
|
||||
}
|
||||
return v2
|
||||
}
|
||||
|
||||
func Max(v1, v2 int) int {
|
||||
if v1 > v2 {
|
||||
return v1
|
||||
}
|
||||
return v2
|
||||
}
|
||||
|
Reference in New Issue
Block a user