Fix Day04 Part2 input parsing

This commit is contained in:
Sebastian Lindemeier committed 2026-12-04 09:51:08 +01:00
1 parent 7a66eaa0e1
commit 120f3ac96c
1 file changed
+1 -1
+1 -1
View File
@@ -21,7 +21,7 @@ public class Day04 : IPuzzleSolver<long>
public long SolvePart2(string pathToPuzzleInput) public long SolvePart2(string pathToPuzzleInput)
{ {
var barcodes = File.ReadAllLines(pathToPuzzleInput); var barcodes = ParsePuzzleInput(pathToPuzzleInput);
var barcode = barcodes.Aggregate("", (acc, next) => acc + next); var barcode = barcodes.Aggregate("", (acc, next) => acc + next);
var patternLength = GetMinInstructionLength(barcode); var patternLength = GetMinInstructionLength(barcode);
return patternLength; return patternLength;