AdventOfCode/Advent Of Code Library/2022/Day 12/Day12Part1.cs
2023-11-27 21:50:58 +01:00

31 lines
860 B
C#

namespace AdventOfCodeLibrary._2022
{
using AdventOfCodeLibrary.Shared;
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;
}
}
}