You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/2024/puzzles/day01.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -77,6 +77,7 @@ end part2
77
77
-[Solution](https://scastie.scala-lang.org/Sporarum/jVlQBCvoQXCtlK4ryIn42Q/4) by [Quentin Bernet](https://github.com/Sporarum)
78
78
-[Solution](https://github.com/jnclt/adventofcode2024/blob/main/day01/historian-hysteria.sc) by [jnclt](https://github.com/jnclt)
79
79
-[Solution](https://github.com/YannMoisan/advent-of-code/blob/master/2024/src/main/scala/Day1.scala) by [YannMoisan](https://github.com/YannMoisan)
80
+
-[Solution](https://github.com/itsjoeoui/aoc2024/blob/main/src/day01.scala) by [itsjoeoui](https://github.com/itsjoeoui)
80
81
81
82
Share your solution to the Scala community by editing this page.
82
83
You can even write the whole article! [See here for the expected format](https://github.com/scalacenter/scala-advent-of-code/discussions/424)
Again this is not the most efficient way (we are creating many new `Report` instances),
79
-
but our puzzle inputs are fairly short (there are at most 8 levels in each `Report`),
78
+
Again this is not the most efficient way (we are creating many new `Report` instances),
79
+
but our puzzle inputs are fairly short (there are at most 8 levels in each `Report`),
80
80
so it's a simple approach that reuses the `isSafe` method from Part 1.
81
81
82
82
Part 2 solver now counts the dampened safe reports:
@@ -95,6 +95,7 @@ def part2(input: String): Int = parse(input).count(_.isDampenedSafe)
95
95
-[Solution](https://github.com/Philippus/adventofcode/blob/main/src/main/scala/adventofcode2024/Day02.scala) by [Philippus Baalman](https://github.com/philippus)
96
96
97
97
-[Solution](https://github.com/nikiforo/aoc24/blob/main/src/main/scala/io/github/nikiforo/aoc24/D2T2.scala) by [Artem Nikiforov](https://github.com/nikiforo)
98
+
-[Solution](https://github.com/itsjoeoui/aoc2024/blob/main/src/day02.scala) by [itsjoeoui](https://github.com/itsjoeoui)
98
99
99
100
Share your solution to the Scala community by editing this page.
100
101
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