2025 Day 9 Complete!

This commit is contained in:
2025-12-09 09:59:06 -06:00
parent d10e9f9a9a
commit a980fd721b
7 changed files with 790 additions and 0 deletions

View File

@@ -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 {