Skip to content

Commit 28017c3

Browse files
authored
Merge pull request #26 from sraaphorst/D10
D10: Removing unused variables.
2 parents 823a595 + 97bb52e commit 28017c3

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/main/kotlin/day10/day10.kt

-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ private fun parse(input: String): List<List<Int>> =
1616
.map { line -> line.trim().toList().map { it.digitToIntOrNull() ?: -1 } }
1717

1818
private fun findTrails(grid: List<List<Int>>): Map<IntPos2D, Trails> {
19-
val rows = grid.size
20-
val cols = grid[0].size
21-
2219
val zeros = grid.flatMapIndexed { rowIdx, row ->
2320
row.mapIndexedNotNull { colIdx, height ->
2421
if (height == 0) IntPos2D(rowIdx, colIdx) else null

0 commit comments

Comments
 (0)