mirror of
https://github.com/cupcakearmy/advent-of-code.git
synced 2024-12-22 16:16:26 +00:00
15 lines
330 B
Markdown
15 lines
330 B
Markdown
# 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.
|
|
|
|
<details>
|
|
<summary>Solutions</summary>
|
|
<ol>
|
|
<li>548</li>
|
|
<li>502</li>
|
|
</ol>
|
|
</details>
|