We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd04255 commit b016d98Copy full SHA for b016d98
src/main/kotlin/me/peckb/aoc/_2025/calendar/day11/Day11.kt
@@ -60,9 +60,7 @@ class Day11 @Inject constructor(
60
currentPath.add(current)
61
62
// find out how many steps we have
63
- val steps = serverMap[current.id]!!.nextServers
64
- .map { serverMap[it]!! }
65
- .sumOf { dfs(it, updatedStopsHit) }
+ val steps = serverMap[current.id]!!.nextServers.sumOf { dfs(serverMap[it]!!, updatedStopsHit) }
66
67
// current path is mutable so don't forget to pop ourselves back off the stack!
68
currentPath.remove(current)
0 commit comments