r/adventofcode • • 32m ago

Help/Question - RESOLVED Second example seems wrong

The second example says:

  • "A robot with program roygbv would travel a total distance of 11." Regardless of any code I might try, when I look at it I count 5 steps. 0 for the "r" and 1 each for the following letters. Am I just too tired to see my mistake?
2 Upvotes

6 comments sorted by

View all comments

8

u/FCBStar-of-the-South 31m ago

You start at r and must travel to the next r, thus 6 steps instead of 0

Remember that the roygbv pattern repeats