Advent of Code

Saturday 19 December 2015

Combining traditional Christmas advent calendars with online programming exercises: Advent of Code is a nicely made collection of programming problems.

One of the things I like about these problems is there are always two parts, and you don’t see the second part of the problem until you have solved the first part. This usually leads to refactorings or repurposing of your code, which is a valuable exercise in and of itself.

For many of the problems, there are interesting follow-on questions. One common one would be, “Write the code that generates the sample inputs to be sure there’s a single answer.” For some of the problems, any random input would do, but for some, there’s a constraint that has to be met.

I have a collection of approachable problems at Kindling projects. If Advent of Code will stay up after Christmas, I’ll definitely add it to that page.

Today’s is the first where a simple brute force approach isn’t going to work, and I’ll need a cleverer algorithm... Hmmm...


Kevin Jackson-Mead 11:41 AM on 20 Dec 2015
The creator has said that the plan is to leave it up:

And elsewhere in the thread, people mention some things that might also be appropriate for your Kindling projects page:
Thanks Ned for the pointer to advent code. I'm now going through the problems with my son as his school holiday project.
I've added Advent of Code (and a few others from the Reddit thread) to the Kindling Projects page.
If you liked Advent Of Code, you should check out by the same guy. Maybe a bit too big for your kindling projects, but really really satisfying.

Add a comment:

Ignore this:
Leave this empty:
Name is required. Either email or web are required. Email won't be displayed and I won't spam you. Your web site won't be indexed by search engines.
Don't put anything here:
Leave this empty:
Comment text is Markdown.