day 17a complete
This commit is contained in:
15
shared/Math.go
Normal file
15
shared/Math.go
Normal file
@ -0,0 +1,15 @@
|
||||
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
|
||||
}
|
Reference in New Issue
Block a user