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:
2020-12-24 09:58:15 -06:00
parent 3b5bae7948
commit 10a3ba0699
5 changed files with 701 additions and 4 deletions

View File

@@ -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
}