1
0
Fork 0
advent-of-code/2020/05
Sloane Perrault 4cd13c0129 solve: day 5
- solve: day 5, part 1
 - solve: day 5, part 2
2022-09-21 09:19:52 -04:00
..
day5.hs solve: day 5 2022-09-21 09:19:52 -04:00
input.txt scaffold: day 5 2022-09-21 09:19:52 -04:00
part1.hs solve: day 5 2022-09-21 09:19:52 -04:00
part2.hs solve: day 5 2022-09-21 09:19:52 -04:00
README.md solve: day 5 2022-09-21 09:19:52 -04:00

Day 5

Part 1

It's just binary where F and L are 0 and B and R are 1.

Part 2

At first I just looked at the difference between lists to get the answer. Since updated to find the first difference in the two lists (of all possible seats and the actual seats) after skipping the gap at the start.