Skip to content

Commit 742ee10

Browse files
committed
(update) day 10: add output headers
1 parent 8a19305 commit 742ee10

File tree

1 file changed

+6
-1
lines changed
  • day10/src/main/kotlin/org/adventofcode

1 file changed

+6
-1
lines changed

day10/src/main/kotlin/org/adventofcode/App.kt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ object IncompleteExpressionRepairer {
8585
}
8686

8787
fun runSolutionPart1(expressions: List<String>) {
88+
println("Day 10 Solution: Part 1 ")
89+
8890
val evaluations = expressions.map { it to ExpressionEvaluator.evaluate(it) }
8991

9092
evaluations
@@ -103,6 +105,8 @@ fun runSolutionPart1(expressions: List<String>) {
103105
}
104106

105107
fun runSolutionPart2(expressions: List<String>) {
108+
println("Day 10 Solution: Part 2 ")
109+
106110
val evaluations = expressions.map { it to ExpressionEvaluator.evaluate(it) }
107111

108112
val repairs = evaluations
@@ -135,6 +139,7 @@ fun runSolutionPart2(expressions: List<String>) {
135139

136140
fun main() {
137141
val expressions = File("day10/src/main/resources/puzzleInput.txt").readLines()
138-
// runSolutionPart1(expressions)
142+
runSolutionPart1(expressions)
143+
println()
139144
runSolutionPart2(expressions)
140145
}

0 commit comments

Comments
 (0)