From 042e6e02960b613e7f5bbb0f3ddaf0a88ce1cc72 Mon Sep 17 00:00:00 2001 From: Seth Tisue Date: Wed, 18 Dec 2024 20:51:32 -0800 Subject: [PATCH 1/2] fix an editing error in day 6 article --- docs/2024/puzzles/day06.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/2024/puzzles/day06.md b/docs/2024/puzzles/day06.md index 8bc01a0e0..e88379b3a 100644 --- a/docs/2024/puzzles/day06.md +++ b/docs/2024/puzzles/day06.md @@ -205,7 +205,7 @@ def possibleObstaclesPositionsNumber(g: Guard, startingPov: PointOfView): Int = newPossibleGuards.par.count(g => looping(g, startingPov)) ``` -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. +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. This concludes the solution for part 2 of the problem. From 8ef8d27d7e7de4b4672078d300ffb48312a26754 Mon Sep 17 00:00:00 2001 From: Seth Tisue Date: Wed, 18 Dec 2024 20:54:19 -0800 Subject: [PATCH 2/2] fix formatting --- docs/2024/puzzles/day13.md | 1 + docs/2024/puzzles/day16.md | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/2024/puzzles/day13.md b/docs/2024/puzzles/day13.md index e41ec3337..706fcb97f 100644 --- a/docs/2024/puzzles/day13.md +++ b/docs/2024/puzzles/day13.md @@ -206,6 +206,7 @@ def part2(input: String): Long = ``` ## Solutions from the community + - [Solution](https://github.com/rmarbeck/advent2024/blob/main/day13/src/main/scala/Solution.scala) by [Raphaël Marbeck](https://github.com/rmarbeck) - [Solution](https://github.com/spamegg1/aoc/blob/master/2024/13/13.worksheet.sc#L109) by [Spamegg](https://github.com/spamegg1) - [Solution](https://github.com/aamiguet/advent-2024/blob/main/src/main/scala/ch/aamiguet/advent2024/Day13.scala) by [Antoine Amiguet](https://github.com/aamiguet) diff --git a/docs/2024/puzzles/day16.md b/docs/2024/puzzles/day16.md index 39131021e..c5377158b 100644 --- a/docs/2024/puzzles/day16.md +++ b/docs/2024/puzzles/day16.md @@ -473,5 +473,6 @@ given Ordering[Reindeer] = Ordering.by(-_.score) - [Solution](https://github.com/rmarbeck/advent2024/blob/main/day16/src/main/scala/Solution.scala) by [Raphaël Marbeck](https://github.com/rmarbeck) - [Solution](https://github.com/TheDrawingCoder-Gamer/adventofcode2024/blob/master/src/main/scala/Day16.scala) by [Bulby](https://github.com/TheDrawingCoder-Gamer) - [Solution](https://github.com/jportway/advent2024/blob/master/src/main/scala/Day16.scala) by [Joshua Portway](https://github.com/jportway) + Share your solution to the Scala community by editing this page. You can even write the whole article! [See here for the expected format](https://github.com/scalacenter/scala-advent-of-code/discussions/424)