advent-of-code/2020/solutions/2/README.md

15 lines
330 B
Markdown
Raw Normal View History

2020-12-02 12:21:31 +00:00
# 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.
2020-12-02 12:24:17 +00:00
<details>
<summary>Solutions</summary>
<ol>
<li>548</li>
<li>502</li>
</ol>
</details>