Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
isaiahliu committed Dec 7, 2024
1 parent b5690cf commit 42ad4d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/p07xx/Problem0782.kt
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ fun main() {
}
}

return arrayOf(0, 1).mapNotNull { dupBoard.moveRow(it) }.map { it + result }.minOrNull()
return arrayOf(0, 1).mapNotNull { dupBoard.moveRow(it) }.minOfOrNull { it + result }
}

return arrayOf(moveColumn(0), moveColumn(1)).filterNotNull().minOrNull() ?: -1
Expand Down

0 comments on commit 42ad4d4

Please sign in to comment.