Skip to content

Commit 2e4de8a

Browse files
committed
formatting
1 parent 22c7051 commit 2e4de8a

File tree

1 file changed

+1
-2
lines changed
  • src/main/kotlin/me/peckb/aoc/_2024/calendar/day07

1 file changed

+1
-2
lines changed

src/main/kotlin/me/peckb/aoc/_2024/calendar/day07/Day07.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ class Day07 @Inject constructor(
1717
fun check(calibration: Calibration, operands: List<Operand>): Boolean {
1818
val (n, m) = calibration.numbers.take(2)
1919
val otherNumbers = calibration.numbers.drop(2)
20-
return operands.any { op -> check(calibration.value, listOf(op.invoke(n, m)).plus(otherNumbers), operands)
21-
}
20+
return operands.any { op -> check(calibration.value, listOf(op.invoke(n, m)).plus(otherNumbers), operands) }
2221
}
2322

2423
fun check(targetVal: Long, remainingNumbers: List<Long>, operands: List<Operand>) : Boolean {

0 commit comments

Comments
 (0)