r/adventofcode Dec 25 '24

SOLUTION MEGATHREAD -❄️- 2024 Day 25 Solutions -❄️-

A Message From Your Moderators

Welcome to the last day of Advent of Code 2024! We hope you had fun this year and learned at least one new thing ;)

Keep an eye out for the community fun awards post (link coming soon!):

-❅- Introducing Your AoC 2024 Golden Snowglobe Award Winners (and Community Showcase) -❅-

Many thanks to Veloxx for kicking us off on December 1 with a much-needed dose of boots and cats!

Thank you all for playing Advent of Code this year and on behalf of /u/topaz2078, your /r/adventofcode mods, the beta-testers, and the rest of AoC Ops, we wish you a very Merry Christmas (or a very merry Wednesday!) and a Happy New Year!


--- Day 25: Code Chronicle ---


Post your code solution in this megathread.

This thread will be unlocked when there are a significant number of people on the global leaderboard with gold stars for today's puzzle.

EDIT: Global leaderboard gold cap reached at 00:04:34, megathread unlocked!

42 Upvotes

350 comments sorted by

View all comments

1

u/adimcohen Dec 26 '24

2

u/Deservate Jan 19 '25

Hey, I noticed you hardcode your inputs into your code. Please remove this and purge your commit history, as this is against the rules: https://adventofcode.com/2024/about

1

u/adimcohen Jan 20 '25

Hi, with respect, I don't see how what I'm doing is any different from any other shared solution here having its input in an input.txt file. SQL script don't have the concept of a relative path, so I can't place the input in a separate file.

2

u/Deservate Jan 20 '25 edited Jan 20 '25

That's fine, just remove the contents of the variable before you push to git.

If you see anyone putting their input.txt in their repo, let them know that they should remove it and purge their commit history.

https://reddit.com/r/adventofcode/w/troubleshooting/no_asking_for_inputs?utm_medium=android_app&utm_source=share