Advent of Code
Solve both parts of each daily puzzle using your personal input before the next problem unlocks, or fail the twelve-day completion streak.
The rules
- Download your unique puzzle input directly from adventofcode.com after logging in; copying another user's input data or hardcoding solutions violates the challenge rules.
- Complete Part 1 of the daily problem to unlock Part 2; failing to submit the correct answer to the first part locks access to the second star.
- Submit your generated answer directly into the submission box on the official site; entering an incorrect answer triggers a mandatory cooldown timer before you can submit again.
- Finish both parts of the puzzle within each calendar day between December 1 and December 12; missing a day breaks your daily completion streak.
- Keep puzzle text and raw personal inputs off public code repositories in accordance with Eric Wastl's copyright rules; you may only share your own source code.
What it is
Advent of Code runs 12 puzzles a year from 2025, December 1 to 12. Eric Wastl created the project in 2015 as a 25-day holiday calendar of programming problems unlocking daily at midnight Eastern Time. The creator shortened the event to 12 days in 2025 and eliminated the global competitive leaderboard to stop competitive burnout and prevent automated bot accounts from dominating the rankings.
Each puzzle delivers a two-part holiday storyline requiring data processing, coordinate calculations, graph traversals, and algorithmic problem-solving. Part 1 sets the base scenario. Part 2 builds directly on that scenario, expanding numerical inputs, altering simulation state rules, or introducing scale that breaks brute-force code.
The main misconception is that Advent of Code evaluates production software engineering or code style. The site never reads your repository, inspects your architecture, or checks test coverage. It evaluates a single scalar string or integer output. Writing ugly, quick scripts that output the correct value counts as a full pass; writing pristine, tested code that fails to terminate in time counts as a complete failure.
Why it works
Advent of Code forces deliberate practice, a framework identified by psychologist K. Anders Ericsson in 1993. Deliberate practice requires immediate correctness feedback, isolated problem spaces, and rapid repetition near the limit of current ability.
The structure forces immediate algorithmic accountability. When Part 2 expands the problem space from thousands to trillions of iterations, naive loops with O(N^2) or exponential complexity freeze the terminal. You cannot bypass the math through faster hardware; you must identify the bottleneck and refactor to hash lookups, memoization, lowest common multiple calculations, or breadth-first search. The concrete feedback loop pinpoints gaps in computer science fundamentals within minutes. The twelve-day format sustains focus across the entire event, removing the late-December fatigue that previously derailed completion rates on the older twenty-five-day schedule.
How to start
- Create an account on adventofcode.com before December 1 using GitHub, Google, or another supported authentication provider.
- Configure your local workspace with your chosen programming language, text editor, and standard scripts for reading text files into arrays or strings.
- Solve three past puzzles from previous years on the site to verify your file ingestion and coordinate parsing routines.
- Join a private leaderboard with coworkers or friends through the site settings to track star counts without public score pressure.
- Set a daily calendar block for your local puzzle drop time to ensure dedicated, uninterrupted focus.
The daily plan
| Day | Focus Area | Difficulty Spike | Daily Milestone |
|---|---|---|---|
| Day 1 | List sorting and element parsing | Low | Collect Stars 1 and 2 |
| Day 2 | String validation and state machines | Low | Collect Stars 3 and 4 |
| Day 3 | 2D coordinate systems and grid searches | Low to Medium | Collect Stars 5 and 6 |
| Day 4 | Hash maps, sets, and frequency counters | Medium | Collect Stars 7 and 8 |
| Day 5 | Interval mapping and numerical ranges | Medium | Collect Stars 9 and 10 |
| Day 6 | Mathematical optimization and algebra | Medium | Collect Stars 11 and 12 |
| Day 7 | Custom ordering and rule evaluation | Medium to High | Collect Stars 13 and 14 |
| Day 8 | Cycle detection and lowest common multiple | High | Collect Stars 15 and 16 |
| Day 9 | Recursion and sequence extrapolation | High | Collect Stars 17 and 18 |
| Day 10 | Flood fills and pathfinding algorithms | High | Collect Stars 19 and 20 |
| Day 11 | Dynamic programming and memoization | Very High | Collect Stars 21 and 22 |
| Day 12 | Complex simulations and state search | Peak | Collect Stars 23 and 24 |
What success looks like
- By Day 6, you have collected 12 out of 12 available stars using your own parsing templates.
- By Day 12, your profile displays all 24 stars earned through personal code execution.
- Your personal repository holds 12 working scripts that independently produce the correct outputs from raw inputs.
Where people quit
- Brute-forcing massive inputs: Hits Day 5. The problem size scales by several orders of magnitude in Part 2, causing simple nested loops to hang for hours. Fix: map continuous intervals instead of individual numbers, or identify cycle intervals mathematically.
- Grid coordinate bugs: Hits Day 3 or Day 10. Mixing up row-and-column arrays with standard X-and-Y Cartesian axes causes off-by-one errors and infinite path loops. Fix: write a small helper function that validates neighbor coordinates against grid boundaries before executing search logic.
- Uncached state growth: Hits Day 11. Recursive functions recalculate identical branch states millions of times, exhausting the system call stack. Fix: add a memoization dictionary or cache key using the current state parameters as the lookup hash.
Variations
- Polyglot run: Solve each day of the challenge using a completely different programming language, switching from Python to Rust, Go, or Haskell across the twelve days.
- Performance run: Enforce a strict execution threshold on your code, requiring every daily solution to parse input and print both answers in under 100 milliseconds.
- 100 Days of Code is a neighboring challenge that focuses on building an everyday programming habit across months rather than solving seasonal holiday algorithms.
Who should skip this
- Absolute programming novices who do not yet understand basic syntax, variables, and arrays; the problems assume baseline programming literacy.
- Software engineers experiencing acute job burnout; spending off-hours debugging logic traps compounds mental exhaustion.
- Developers lacking an uninterrupted 90-minute daily block between December 1 and 12; working algorithms in fragmented five-minute intervals leads to logic errors.
FAQs
Can you use AI like ChatGPT to solve Advent of Code?
You can use AI tools to explain compiler errors or teach algorithms, but pasting raw puzzle inputs into large language models defeats the purpose of the challenge. The puzzles test your ability to translate written problem constraints into computational logic. Using automated generators removes the practice required to build your own problem-solving skills.
What programming language should you use for Advent of Code?
Use the language you know best if your goal is finishing all 12 days, especially languages with rich standard libraries like Python, Go, or C#. If your goal is learning a new language, expect to spend extra time reading documentation on text parsing, hash maps, and recursion depth limits.
Do you have to finish each puzzle on the day it releases?
No. While daily completion keeps your twelve-day streak alive, puzzles remain open indefinitely after they unlock. If you get stuck on a difficult Part 2 puzzle, you can leave it, review the problem the following weekend, and submit your answers later to collect your stars.
Why did Advent of Code change from 25 days to 12 days?
Creator Eric Wastl reduced the schedule to 12 days starting in 2025 to curb participant burnout during the busy December holiday period. The change preserves the high quality of the puzzles while making full completion realistic for developers who could not sustain 25 consecutive days of intense algorithmic problem-solving.
12 days, starting whenever you say.
Leave your email and we send check-ins for Advent of Code. One click to unsubscribe.