
The first puzzles on the Advent of Code 2026 calendar are scheduled to unlock at midnight US Eastern Standard Time on December 1. For developers in India, that is 10:30 AM IST on Tuesday, December 1. The organizer’s FAQ says puzzles appear daily into mid-December. If you remember an older 25-day calendar, check the 2026 event page when planning a team challenge. Official 2026 calendar · Organizer’s FAQ.
A two-file setup you can understand at a glance
The most useful preparation is being able to change one line and rerun one test quickly. Keep the part that reads a file separate from the function that solves the problem. A function that accepts a string lets you paste a tiny example directly into a test. It also makes a failing case small enough to reason through on paper.
Here is an original warm-up unrelated to the official puzzles. Given a daily list of route codes, count how many different nonblank codes appear. A repeated code with accidental padding should count once. Save the following as warmup.py.
def distinct_routes(text):
lines = (line.strip() for line in text.splitlines())
return len({line for line in lines if line})
In test_warmup.py, keep the expected result next to an input small enough to inspect. Run python -m unittest test_warmup from the same directory.
import unittest
from warmup import distinct_routes
class RouteTests(unittest.TestCase):
def test_ignores_padding_and_repeats(self):
self.assertEqual(distinct_routes("K1\n K1 \n\nR2"), 2)
def test_empty_input(self):
self.assertEqual(distinct_routes(""), 0)
Keep the puzzle private and the solution shareable
The organizer asks participants to keep personal inputs and puzzle text out of public repositories. Commit your implementation and tests written with your own invented data. Keeping a private inputs/ folder out of version control from the first commit is simpler than cleaning up a repository after publishing it. A private leaderboard is also a practical option when colleagues want to compare solutions after work. Agree on a start time and what tools everyone will use before comparing scores. Event guidance on sharing and private leaderboards.
