REMEMBER!
It is VERY important NOT to write any public spoilers
ALWAYS keep spoiler stuff hidden inside one of these
Summary
This text will be hidden
which you can obtain by clicking on the + icon and then selecting Hide Details
Good luck
FYI one of the features of Advent of Code is that we all get given different inputs so our answers will be different.
The examples are all the same but each of us gets different inputs for us to solve
It would be fun to make a dial and show all the turns as they happen
Part 2
This was a little tough. It took me a while to figure out how to detect when it passed 0. It also took me a while to realize that when it reaches 0, it’s not detected as passed 0.
Part 2 was quite a bit harder. Ultimately I separated the additional rotations (hundreds place) from the rest of the number to count the zeros separately. I also had to let go of using mod to get the non hundreds digit part of the number because it made everything positive. Ultimately similar to @ego-lay_atman-bay’s solution, although with fewer variables: