29 lines
824 B
C#
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;
|
|
}
|
|
}
|
|
}
|