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