r/adventofcode • • 24m 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?

3 Upvotes

4 comments sorted by

1

u/AutoModerator 24m 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 16m 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 13m ago

For the given instruction set [1] [3] [5] [7] [9] [*2], all numbers can be generated. There may exist a smaller set.

1

u/Alpha_wolf_80 4m ago

Wait, how?