AdventOfCode2021/shared/Math.go
2021-12-17 22:33:26 +00:00

16 lines
153 B
Go

package shared
func Max(x int, y int) int {
if x >= y {
return x
}
return y
}
func Min(x int, y int) int {
if x <= y {
return x
}
return y
}