Skip to content

Instantly share code, notes, and snippets.

@alandipert
Created December 7, 2017 09:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alandipert/f62e73c6c0c273fbf7c5ed6e77bc18a5 to your computer and use it in GitHub Desktop.
Save alandipert/f62e73c6c0c273fbf7c5ed6e77bc18a5 to your computer and use it in GitHub Desktop.
--- 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