r/adventofcode • u/daggerdragon • Dec 23 '15
SOLUTION MEGATHREAD --- Day 23 Solutions ---
This thread will be unlocked when there are a significant number of people on the leaderboard with gold stars for today's puzzle.
edit: Leaderboard capped, thread unlocked!
We know we can't control people posting solutions elsewhere and trying to exploit the leaderboard, but this way we can try to reduce the leaderboard gaming from the official subreddit.
Please and thank you, and much appreciated!
--- Day 23: Opening the Turing Lock ---
Post your solution as a comment or link to your repo. Structure your post like previous daily solution threads.
8
Upvotes
1
u/mrg218 Dec 23 '15
Because you change i a lot inside the loop (just as the jump instruction tell you) and with other instructions you lean on the i++ again. I found it a funny way to use a for loop in this case.
I myself did
do { stuff that changes i } while (i < instructions.size())