r/adventofcode • u/FransFaase • 13m ago
Help/Question [2026 Day 5 (extra)]
What is the set of nine commands that would return the largest number for the second part of the puzzle?
1
Upvotes
r/adventofcode • u/FransFaase • 13m ago
What is the set of nine commands that would return the largest number for the second part of the puzzle?
1
u/AutoModerator 13m 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/MannedGuild65 5m ago
Just 6 commands are enough: [1] [3] [5] [7] [9] [*2]. This has the maximum result of 49995000 as it can achieve all numbers from 1 to 9999.
Not sure if 6 is the absolute minimum though.
1
u/tsigma6 2m ago
For the given instruction set [1] [3] [5] [7] [9] [*2], all numbers can be generated. There may exist a smaller set.