AdventOfCode/AdventOfCode.Solutions/2022/Day 12/Day12Part1.cs
Rob 3846b42b7e Massive code base change
partial completion of day 3
2023-12-03 19:09:26 +01:00

29 lines
824 B
C#

namespace AdventOfCode.Solutions._2022
{
public class Day12Part1 : Answerable
{
public override int Year { get; set; } = 2022;
public override int Day { get; set; } = 12;
public override int Part { get; set; } = 1;
public override string GetAnswer(byte[] data)
{
int totalWidth = data.First(b => b == 10 || b == 13);
int totalHeigth = data.Count(b => b == 10);
int[][] map = new int[totalHeigth][];
for (int heigthIndex = 0; heigthIndex <= totalHeigth; heigthIndex++)
{
map[heigthIndex] = new int[totalWidth];
for (int widthIndex = 0; widthIndex <= totalWidth; widthIndex++)
{
}
}
return string.Empty;
}
}
}