Advent of Code 2026

Hi Swift Community!

It's the most Wonderful Time Of The Year. Time to spend with Family and Friends spend on Swift coding challenge fun!

Every December, Eric Wastl publishes Advent of Code, a fun set of coding exercises. One challenge is posted each day from December 1st to December 12th . The challenges start out easy and increase in difficulty. Here’s the first exercise from last year for example.

You can use whatever programming language and techniques you like to complete the exercises, but of course, we use Swift! Participating is a great way to sharpen your Swift skills and have a little fun with the community.

For those interested, we have a starter template to help you get going, though its not needed per se.

To participate with Swift:

  1. Create an Xcode project (Command Line Tool is fine), Swift Package or clone the starter project
    a. if your repo is public, make sure to exclude the input data from version control
  2. Create an account at Advent of Code (required to use the leaderboard)
  3. Join the Swift community leaderboard to participate with others. Use ID 3315857-05237f97. Up to 200 players can join the leaderboard.
  4. Every day (or as often as you prefer), attempt the challenge using Swift!

The leaderboard will automatically update to show who has completed the challenge and provide a score based on how long it took you. You can always ignore the score of course - it’s just for fun!

We'd encourage you to include a link to your GitHub account where you can post your solution. It’s really neat to see how everyone attempts each day’s challenge: we learn new things about how others use the Swift language, and you can pick up some great tips and techniques from studying others' work.

Look forward to seeing you online!

Previous years

If you want to see a bit more about the discussions of last years, here are some forum threads:

12 Likes

Only a few more days!

My "solutions" will be here: GitHub - maartene/AoC2026 · GitHub

Thanks for putting this together. The starter template and shared leaderboard make it easy to join in, and I like that the early puzzles are a gentle way into daily Swift practice.

1 Like

Yay! It's Advent of Code time again!

I'll be posting my solutions here: GitHub - Androp0v/AdventOfCode2026: Solutions for Advent of Code 2026. · GitHub

It's going to be even more of an interesting exercise this year, given how the industry has changed.

2 Likes

Using any AI without disclosure is cheating? :slight_smile:

Ha, what is or isn’t considered cheating is a bit of a thorny topic. Using AI to solve these puzzles can be an interesting exercise too, and I certainly wouldn’t call it cheating if that’s your goal.

That said, Eric Wastl has been very clear about what he thinks about using AI for AoC, and given it’s his challenge I’d say it’s impolite to ignore him.

I’d say, the fun of AoC is to solve the puzzles yourself or perhaps together with other people. Having them be solved for you by a machine defeats the purpose.

Also, if you get stuck there’s no harm in asking for a hint or two here in the forums. Sometimes just getting pointed in the right direction helps you get unstuck and you learned something as well.

6 Likes

Yay, it's AoC time again! My solutions will be at https://codeberg.org/gereon/AoC2026.

1 Like

My first year participatingmy solutions found here; looking forward to solve some hard puzzles in my favorite programming language.

2 Likes

Hi there, this is my 2nd year joining Advent of Code using Swift!
My repo is here.

Got a nice warm-up in day 1!

1 Like

Checking my Functional style solution by using Swift Algorithms :smiling_face:

https://github.com/iamhands0me/Advent-of-Code/

1 Like