Skip to content

Commit 042e6e0

Browse files
committed
fix an editing error in day 6 article
1 parent b8eed2c commit 042e6e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/2024/puzzles/day06.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def possibleObstaclesPositionsNumber(g: Guard, startingPov: PointOfView): Int =
205205
newPossibleGuards.par.count(g => looping(g, startingPov))
206206
```
207207

208-
As we are brute forcing, let's use a parallel collection, to use all the potential of our nice hardware, to check multiple lab dispositions at the same time. We also use a `ForkJoinPool` to control the number of threads used by the parallel collection. See how simple it is to use parallel collections in Scala, using the `.par` method.
208+
As we are brute forcing, let's use a parallel collection, to use all the potential of our nice hardware, to check multiple lab dispositions at the same time. See how simple it is to use parallel collections in Scala, using the `.par` method.
209209

210210

211211
This concludes the solution for part 2 of the problem.

0 commit comments

Comments
 (0)