Skip to content

Commit b016d98

Browse files
committed
oneline
1 parent dd04255 commit b016d98

File tree

1 file changed

+1
-3
lines changed
  • src/main/kotlin/me/peckb/aoc/_2025/calendar/day11

1 file changed

+1
-3
lines changed

src/main/kotlin/me/peckb/aoc/_2025/calendar/day11/Day11.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,7 @@ class Day11 @Inject constructor(
6060
currentPath.add(current)
6161

6262
// find out how many steps we have
63-
val steps = serverMap[current.id]!!.nextServers
64-
.map { serverMap[it]!! }
65-
.sumOf { dfs(it, updatedStopsHit) }
63+
val steps = serverMap[current.id]!!.nextServers.sumOf { dfs(serverMap[it]!!, updatedStopsHit) }
6664

6765
// current path is mutable so don't forget to pop ourselves back off the stack!
6866
currentPath.remove(current)

0 commit comments

Comments
 (0)