advent-of-code/2020/solutions/5
2021-12-01 11:43:46 +01:00
..
python move to 2020 fodler 2021-12-01 11:43:46 +01:00
data.txt move to 2020 fodler 2021-12-01 11:43:46 +01:00
README.md move to 2020 fodler 2021-12-01 11:43:46 +01:00
test.txt move to 2020 fodler 2021-12-01 11:43:46 +01:00

5

For the first one we treat the codes as 2 binary codes. One 7 and the other 3 long.

The second tripped me up as I was returning the binary encoded ticket number but AOC was expecting the seat ID. My bad, took me long to get it. Thanks to @tcq1

Solutions
  1. 998
  2. 84, 4 -> 676