Skip to content

Commit f09dec5

Browse files
committed
Fix naming
1 parent 13fcda2 commit f09dec5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Day11.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ fun main() {
2929
}
3030

3131
// test if implementation meets criteria from the description, like:
32-
val testInput = readInput(day = DAY, useTestInput = true).toIntArray()
32+
val testInput = readInput(day = DAY, useTestInput = true).parseInput()
3333
check(part1(testInput) == 1656)
3434
check(part2(testInput) == 195)
3535

36-
val input = readInput(day = DAY).toIntArray()
36+
val input = readInput(day = DAY).parseInput()
3737
println(part1(input))
3838
println(part2(input))
3939
}
@@ -140,6 +140,6 @@ private fun makeOctopusFlash(octopuses: Array<IntArray>, x: Int, y: Int, flashed
140140
}
141141
}
142142

143-
private fun List<String>.toIntArray(): List<List<Int>> {
143+
private fun List<String>.parseInput(): List<List<Int>> {
144144
return map { it.map { it.toString().toInt() } }
145145
}

0 commit comments

Comments
 (0)