Fix Day04 Part2 input parsing
This commit is contained in:
1 parent
7a66eaa0e1
commit
120f3ac96c
1 file changed
+1
-1
+1
-1
@@ -21,7 +21,7 @@ public class Day04 : IPuzzleSolver<long>
|
||||
|
||||
public long SolvePart2(string pathToPuzzleInput)
|
||||
{
|
||||
var barcodes = File.ReadAllLines(pathToPuzzleInput);
|
||||
var barcodes = ParsePuzzleInput(pathToPuzzleInput);
|
||||
var barcode = barcodes.Aggregate("", (acc, next) => acc + next);
|
||||
var patternLength = GetMinInstructionLength(barcode);
|
||||
return patternLength;
|
||||
|
||||
Reference in new issue
Block a user