Skip to content

Commit 0861325

Browse files
authored
Merge pull request #766 from SethTisue/fixups
fixups
2 parents b8eed2c + 8ef8d27 commit 0861325

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-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.

docs/2024/puzzles/day13.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ def part2(input: String): Long =
206206
```
207207

208208
## Solutions from the community
209+
209210
- [Solution](https://github.com/rmarbeck/advent2024/blob/main/day13/src/main/scala/Solution.scala) by [Raphaël Marbeck](https://github.com/rmarbeck)
210211
- [Solution](https://github.com/spamegg1/aoc/blob/master/2024/13/13.worksheet.sc#L109) by [Spamegg](https://github.com/spamegg1)
211212
- [Solution](https://github.com/aamiguet/advent-2024/blob/main/src/main/scala/ch/aamiguet/advent2024/Day13.scala) by [Antoine Amiguet](https://github.com/aamiguet)

docs/2024/puzzles/day16.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,5 +473,6 @@ given Ordering[Reindeer] = Ordering.by(-_.score)
473473
- [Solution](https://github.com/rmarbeck/advent2024/blob/main/day16/src/main/scala/Solution.scala) by [Raphaël Marbeck](https://github.com/rmarbeck)
474474
- [Solution](https://github.com/TheDrawingCoder-Gamer/adventofcode2024/blob/master/src/main/scala/Day16.scala) by [Bulby](https://github.com/TheDrawingCoder-Gamer)
475475
- [Solution](https://github.com/jportway/advent2024/blob/master/src/main/scala/Day16.scala) by [Joshua Portway](https://github.com/jportway)
476+
476477
Share your solution to the Scala community by editing this page.
477478
You can even write the whole article! [See here for the expected format](https://github.com/scalacenter/scala-advent-of-code/discussions/424)

0 commit comments

Comments
 (0)