mirror of
https://github.com/Threnklyn/advent-of-code-go.git
synced 2026-06-07 12:45:10 +02:00
!changed mathutil package to mathy, removed int/string casting from mathy
This commit is contained in:
+2
-2
@@ -7,7 +7,7 @@ import (
|
||||
"strings"
|
||||
|
||||
"github.com/alexchao26/advent-of-code-go/algos"
|
||||
"github.com/alexchao26/advent-of-code-go/mathutil"
|
||||
"github.com/alexchao26/advent-of-code-go/mathy"
|
||||
"github.com/alexchao26/advent-of-code-go/util"
|
||||
)
|
||||
|
||||
@@ -40,7 +40,7 @@ func knightsOfTheDinnerTable(input string, part int) int {
|
||||
|
||||
maxDiff := math.MinInt32
|
||||
for _, p := range perms {
|
||||
maxDiff = mathutil.MaxInt(maxDiff, calcHappinessDiff(graph, p))
|
||||
maxDiff = mathy.MaxInt(maxDiff, calcHappinessDiff(graph, p))
|
||||
}
|
||||
|
||||
return maxDiff
|
||||
|
||||
Reference in New Issue
Block a user