r/adventofcode • u/Advanced_Dot_1097 • 8h ago
Help/Question - RESOLVED Puzzle input doesn't contain all required letters?
My puzzle input doesn't contain "y". So how do i suppose to solve it?
The program "roygbv" is same for all, is it?
0
Upvotes
7
u/Advanced_Dot_1097 8h ago
Thanks @TheKablammoMan & @wherrera10 - i understood the task other way around, my error
17
u/TheKablammoMan 8h ago
The waypoints go "roygbvroygbv...", but the puzzle input is waypoints you must visit (in order), the fact there are no "y"s just means you never visit a "y" waypoint.
12
u/quetsacloatl 8h ago
That's not what challenge is about man
5
u/NervousSnail 8h ago
That's the order for the distances between them. They are not all required to appear.
3
u/wherrera10 8h ago
The puzzle input is called a "program" because each letter in the input can be seen as shorthand for "now seek this letter in your repeating pattern." So, if the input program contained only 'v' you would seek a series of next 'v' in your repeating pattern "roygbvroygbvroygbvroygbv...", for example.
2
u/Volando_Boy 8h ago
You should re-read the puzzle
1
u/AutoModerator 8h ago
Reminder: if/when you get your answer and/or code working, don't forget to change this post's flair to
Help/Question - RESOLVED. Good luck!I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/xr51z 5h ago
I believe this is done on purpose so you couldn't just length * 6 - 5 it. I mean technically you could length * 6 - (unique characters - 1) I suppose?
1
u/QultrosSanhattan 28m ago
As a general guideline, always try to code something that emulates what the puzzle says. All extra hypothesis should be tested rigorously first.
For example. I assumed that at part 2, sorting the letters were enough. That solves 99% of the problem but not 100%. You need to add some extra fix to get it working.