mirror of
https://github.com/cupcakearmy/advent-of-code.git
synced 2024-10-05 21:15:07 +02:00
some details
This commit is contained in:
parent
cfcad04c46
commit
68a5953bda
3
solutions/1/README.txt
Normal file
3
solutions/1/README.txt
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# 1
|
||||||
|
|
||||||
|
This is quite simple, just iterate and find.
|
6
solutions/2/README.md
Normal file
6
solutions/2/README.md
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
# 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.
|
Loading…
Reference in New Issue
Block a user