You are reading a single comment by @Tijmen and its replies.
Click here to read the full conversation.
-
Just reading your code - in your part 2 you have 'if line[0] = jmp, then change to nop', have you missed the vice versa as well or have i misunderstood?
if you've missed the vice versa then i guess you got lucky ;)
also i see you didn't use deepcopy in the end and instead re-created q_variation each time, any idea what would be quicker?
Today I learned about deep copying and why in the fuck things were changing when I didn't them to change.
https://github.com/TijmenK/AoC2020/blob/main/day8.py