Simplified input parsing for 2026 day 3
This commit is contained in:
1 parent
35d9374c17
commit
6617f4a883
1 file changed
+2
-2
+2
-2
@@ -5,11 +5,11 @@ namespace AoC_2026;
|
|||||||
|
|
||||||
public class Day03 : IPuzzleSolver<long>
|
public class Day03 : IPuzzleSolver<long>
|
||||||
{
|
{
|
||||||
private char[][] ParsePuzzleInput(string path)
|
private static char[][] ParsePuzzleInput(string path)
|
||||||
{
|
{
|
||||||
var puzzleInput = File.ReadAllLines(path)
|
var puzzleInput = File.ReadAllLines(path)
|
||||||
.Where(l => !string.IsNullOrWhiteSpace(l))
|
.Where(l => !string.IsNullOrWhiteSpace(l))
|
||||||
.Select(l => l.Select(c => c).ToArray())
|
.Select(l => l.ToArray())
|
||||||
.ToArray();
|
.ToArray();
|
||||||
return puzzleInput;
|
return puzzleInput;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user