Day 11.2 solution.

This commit is contained in:
Anna Rose Wiggins 2018-12-12 16:46:57 -05:00
parent a409571bd8
commit 2d71871cf4
No known key found for this signature in database
GPG key ID: 8D9ACA841015C59A
4 changed files with 77 additions and 4 deletions

View file

@ -1,8 +1,15 @@
package util
func abs(x int) int {
func Abs(x int) int {
if x < 0 {
return -x
}
return x
}
func Min(i, j int) int {
if i < j {
return i
}
return j
}