You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
245 B

package day05
import (
"log"
"sort"
)
func Solve1() {
var seatIds []int
for _, row := range rows {
seatIds = append(seatIds, getSeatId(row))
}
sort.Ints(seatIds)
log.Printf("2020-12-05.01: Answer: %d\n", seatIds[len(seatIds)-1])
}