diff --git a/src/main/kotlin/day10/day10.kt b/src/main/kotlin/day10/day10.kt index 4ec9ff4..a171494 100644 --- a/src/main/kotlin/day10/day10.kt +++ b/src/main/kotlin/day10/day10.kt @@ -16,9 +16,6 @@ private fun parse(input: String): List> = .map { line -> line.trim().toList().map { it.digitToIntOrNull() ?: -1 } } private fun findTrails(grid: List>): Map { - val rows = grid.size - val cols = grid[0].size - val zeros = grid.flatMapIndexed { rowIdx, row -> row.mapIndexedNotNull { colIdx, height -> if (height == 0) Vec2D.int(rowIdx, colIdx) else null