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
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