2021 Day 9 Complete!

This commit is contained in:
2021-12-09 07:47:28 -06:00
parent 3938ed03b1
commit 25ca901352
4 changed files with 203 additions and 2 deletions

View File

@@ -15,8 +15,8 @@ func StringSliceToCoordByteMap(input []string) CoordByteMap {
for y := range input {
for x := range input[y] {
ret.Field[Coordinate{X: x, Y: y}] = input[y][x]
if x > ret.Width {
ret.Width = x
if x+1 > ret.Width {
ret.Width = x + 1
}
}
}