2021 Day 9 Complete!
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user