2023 Day 10 Complete!

This commit is contained in:
2023-12-10 10:26:21 -06:00
parent 433a4414b6
commit be17b84517
8 changed files with 656 additions and 0 deletions

View File

@@ -184,3 +184,12 @@ func GetHighestX(list ...Coordinate) int {
}
return top
}
func CoordListContains(needle Coordinate, haystack []Coordinate) bool {
for _, chk := range haystack {
if chk.Equals(needle) {
return true
}
}
return false
}