Skip to content

Commit

Permalink
Merge conflict.
Browse files Browse the repository at this point in the history
  • Loading branch information
sraaphorst committed Dec 14, 2024
2 parents 5eef3cc + 28017c3 commit 3806d6f
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<Vec2DInt, Trails> {
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
Expand Down

0 comments on commit 3806d6f

Please sign in to comment.