small refactorings

This commit is contained in:
Sebastian Lindemeier
2025-12-05 09:45:02 +01:00
parent 31caf429ca
commit 79541d0dae
3 changed files with 3 additions and 28 deletions
+1 -1
View File
@@ -113,7 +113,7 @@ public class Day05 : IPuzzleSolver<long>
return optimizedRanges;
}
private static IEnumerable<long> CountIdsInRanges(List<Range> combinedRanges)
private static IEnumerable<long> CountIdsInRanges(IEnumerable<Range> combinedRanges)
{
var countIdsInRanges = combinedRanges.Select(range => range.to - range.from + 1);
return countIdsInRanges;