KSHVRPWQ2SNSQG3JXRGNZWTVOMUDZ3HLCYUMWZMIRVTCRX2S5G4QC
holes =
for row <- 0..127,
column <- 0..7,
BinaryBoarding.calc_id([row, column]) <= 955 do
seat = BinaryBoarding.calc_id([row, column])
# IO.inspect(row, label: "row")
# IO.inspect(column, label: "column")
# IO.inspect(seat, label: "seat")
if Enum.member?(seats, seat) do
# IO.inspect(seat, label: "MEMBER")
else
IO.inspect(seat, label: "NOT MEMBER")
end
end
seats |> Enum.max() |> IO.inspect(label: "Part 1")