aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--challenge-268/asherbhs/nu/ch-1.nu2
-rw-r--r--challenge-268/asherbhs/nu/ch-2.nu2
2 files changed, 2 insertions, 2 deletions
diff --git a/challenge-268/asherbhs/nu/ch-1.nu b/challenge-268/asherbhs/nu/ch-1.nu
index 815d10b1a4..91b36d38b2 100644
--- a/challenge-268/asherbhs/nu/ch-1.nu
+++ b/challenge-268/asherbhs/nu/ch-1.nu
@@ -1,4 +1,4 @@
-def magic-number [x: list<int>, y: list<int>] {
+def magic-number [x: list<int>, y: list<int>] -> int {
($y | math min) - ($x | math min)
}
diff --git a/challenge-268/asherbhs/nu/ch-2.nu b/challenge-268/asherbhs/nu/ch-2.nu
index 09f87b65ae..cf70c3a0f8 100644
--- a/challenge-268/asherbhs/nu/ch-2.nu
+++ b/challenge-268/asherbhs/nu/ch-2.nu
@@ -1,4 +1,4 @@
-def number-game [ints: list<int>] {
+def number-game [ints: list<int>] -> list<int> {
$ints | sort | group 2 | each { reverse } | flatten
}