Advent of Code is an annual Advent calendar of small programming puzzles that can be solved in any programming language you like.
Puzzles have a backstory and then a collection of different inputs with people getting a random input and needing to submit the corresponding output for the puzzle and their input to successfully complete it.
Puzzles start easy and get harder as the days go on. Every day has two different puzzles in increase in difficulty with you getting access to the second puzzle after solving the first.
Puzzles are released every day at midnight ET and can be completed anytime after they are released (but people who solve them quicker after they’re been released get more points for the site leaderboard).
What can I post here?
Anything relating to the event! Whether that be a meme, asking for help, sharing solutions, etc.
Every day a megathread will be posted that solutions to that day should go into. In the megathread you can post code using code blocks or by linking to repositories or pastebins.
To make a code block make three backticks, make a new line and put the code on lines, then put a newline and do three backticks on that
e.g.
```
console.log(‘Hello World’)
```
becomes
console.log('Hello World')
If you want a spot to post code externally (e.g. if it is too large or you want to have a spot to store it) we have a forgejo instance and an opengist instance
you can find them at https://git.programming.dev/ and https://blocks.programming.dev/
How should I format my post titles?
Try to keep titles in this general format:
[help, etc. category if applicable] [YEAR Day # (Part X)] [programming language if applicable] Post Title
For example:
[2023 Day #5 (Part 3)] [Rust] My attempt at a solution
Another example:
[Help] [2023 Day #2] What does this sentence mean
This helps people avoid spoilers and lets people use it as an archive by searching if they find out about the event in the middle and are starting from the beginning