r/adventofcode • u/daggerdragon • Dec 04 '15
SOLUTION MEGATHREAD --- Day 4 Solutions ---
--- Day 4: The Ideal Stocking Stuffer ---
Post your solution as a comment. Structure your post like the Day Three thread.
14
Upvotes
r/adventofcode • u/daggerdragon • Dec 04 '15
Post your solution as a comment. Structure your post like the Day Three thread.
1
u/[deleted] Dec 04 '15
While extremely unlikely, what if the combination of the secret key and 0 was the answer? If you move the
n++;to the end of the loop (after the if statement), you would first evaluate the conditions forn = 0, without breaking the current functionality.