mirror of
https://github.com/cupcakearmy/advent-of-code.git
synced 2025-12-14 05:44:59 +00:00
move to 2020 fodler
This commit is contained in:
15
2020/solutions/8/README.md
Normal file
15
2020/solutions/8/README.md
Normal file
@@ -0,0 +1,15 @@
|
||||
# 8
|
||||
|
||||
Keep getting better! Today we write a little state machine, love it.
|
||||
|
||||
So firstly we remember what `oc` (Operation Counter) we have already visited and if so we simply stop and return the accumulator.
|
||||
|
||||
For I basically run the code many times, inverting `nop` to `jmp` and vice versa until i found a working instruction set.
|
||||
|
||||
<details>
|
||||
<summary>Solutions</summary>
|
||||
<ol>
|
||||
<li>1087</li>
|
||||
<li>780</li>
|
||||
</ol>
|
||||
</details>
|
||||
Reference in New Issue
Block a user