2025 Day 9 Complete!
This commit is contained in:
@@ -404,6 +404,20 @@ func SliceMin(sl []int) int {
|
||||
}
|
||||
}
|
||||
|
||||
func SetDec(v1, v2 int) (int, int) {
|
||||
if v1 < v2 {
|
||||
return v2, v1
|
||||
}
|
||||
return v1, v2
|
||||
}
|
||||
|
||||
func SetInc(v1, v2 int) (int, int) {
|
||||
if v1 > v2 {
|
||||
return v2, v1
|
||||
}
|
||||
return v1, v2
|
||||
}
|
||||
|
||||
func Min(v1, v2 int, vrest ...int) int {
|
||||
min := v2
|
||||
if v1 < v2 {
|
||||
|
||||
Reference in New Issue
Block a user