AdventOfCode2021/shared/Math.go

16 lines
153 B
Go
Raw Normal View History

2021-12-17 22:33:26 +00:00
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
}