File tree Expand file tree Collapse file tree 2 files changed +17
-3
lines changed
Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ fun main() {
88
99 fun part2 (input : List <String >): Int {
1010 var sum = 0
11-
11+
1212 val parsedInput = input.map {
1313 it.split(" | " ).map { it.split(" " ) }
1414 }
@@ -90,5 +90,4 @@ fun main() {
9090 println (part2(input))
9191}
9292
93- private fun String.sortAlphabetically () = toCharArray().sorted().joinToString(" " )
94-
93+ private fun String.sortAlphabetically () = toCharArray().sorted().joinToString(" " )
Original file line number Diff line number Diff line change 1+ private const val DAY = 9
2+
3+ fun main () {
4+ fun part1 (input : List <String >) = - 1
5+ fun part2 (input : List <String >) = - 1
6+
7+ // test if implementation meets criteria from the description, like:
8+ val testInput = readInput(day = DAY , useTestInput = true )
9+ check(part1(testInput) == 15 )
10+ check(part2(testInput) == 61229 )
11+
12+ val input = readInput(day = DAY )
13+ println (part1(input))
14+ println (part2(input))
15+ }
You can’t perform that action at this time.
0 commit comments