advent-of-code/2020/solutions/2
cupcakearmy e88c99bb86
move to 2020 fodler
2021-12-01 11:43:46 +01:00
..
go move to 2020 fodler 2021-12-01 11:43:46 +01:00
python 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
data.txt move to 2020 fodler 2021-12-01 11:43:46 +01:00

README.md

2

For the first we can simply count the occurrences and see if they are between the accepted values. Just some simple parsing.

The second one is similar, but we can be more efficient if we XOR the first and second position.

Solutions
  1. 548
  2. 502