Add Day 05 solution

This commit is contained in:
Sebastian Lindemeier
2025-12-05 07:25:59 +01:00
parent 389784ec76
commit 91ea80d2e3
4 changed files with 146 additions and 2 deletions
+2 -2
View File
@@ -95,8 +95,8 @@ public class Day04 : IPuzzleSolver<long>
int lessThan)
{
var coordinatesWithLess = coordinatesWithNeighbours
.Where(entry => entry.neighbours.Count() < lessThan)
.Select(entry => entry.coordinate);
.Where(roll => roll.neighbours.Length < lessThan)
.Select(roll => roll.coordinate);
return coordinatesWithLess;
}
}