Skip to content

Commit

Permalink
Merge pull request #26 from sraaphorst/D10
Browse files Browse the repository at this point in the history
D10: Removing unused variables.
  • Loading branch information
sraaphorst authored Dec 14, 2024
2 parents 823a595 + 97bb52e commit 28017c3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/main/kotlin/day10/day10.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ private fun parse(input: String): List<List<Int>> =
.map { line -> line.trim().toList().map { it.digitToIntOrNull() ?: -1 } }

private fun findTrails(grid: List<List<Int>>): Map<IntPos2D, Trails> {
val rows = grid.size
val cols = grid[0].size

val zeros = grid.flatMapIndexed { rowIdx, row ->
row.mapIndexedNotNull { colIdx, height ->
if (height == 0) IntPos2D(rowIdx, colIdx) else null
Expand Down

0 comments on commit 28017c3

Please sign in to comment.