Created
December 7, 2017 09:33
-
-
Save alandipert/f62e73c6c0c273fbf7c5ed6e77bc18a5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- Part Two --- | |
Now, the jumps are even stranger: after each jump, if the offset was three or more, instead decrease it by 1. Otherwise, increase it by 1 as before. | |
Using this rule with the above example, the process now takes 10 steps, and the offset values after finding the exit are left as 2 3 2 3 -1. | |
How many steps does it now take to reach the exit? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment