Skip to content

Commit

Permalink
2023 - Day 09 - fixed bug in commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
fmmr committed Dec 14, 2023
1 parent e3ea230 commit ce9b32d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/no/rodland/advent_2023/Day09.kt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Day09(val input: List<String>) : Day<Int, Int, List<List<Int>>> {
else last() + zipWithNext { a, b -> b - a }.next()

// private fun List<Int>.previous(): Int = if (all { it == 0 }) 0
// else first() - diffs().previous()
// else first() - zipWithNext { a, b -> b - a }.previous()

override fun List<String>.parse(): List<List<Int>> {
return map { line ->
Expand Down

0 comments on commit ce9b32d

Please sign in to comment.