is a Christmas-themed, daily coding challenge that has been run each year since 2015. It’s a fun way to learn or sharpen your coding skills and have some fun during the holiday season.
You can complete the challenges using any programming language and environment you like, so why not a Coda Pack? This doc has everything you need to bootstrap your Pack and organize your solutions.
To get started,
Copy this doc
1️⃣ Pack code
When you copy the doc you’ll get a warning that the Advent of Code Pack is no longer available.
That’s expected, since you’ll need to create your own Pack with your solutions to the challenge. You can go ahead and remove it from the doc.
Use the code below to create your Pack. It provides the basic setup you’ll need to work with files and compute solutions.
import * as coda from"@codahq/packs-sdk";
exportconst pack = coda.newPack();
pack.addNetworkDomain("codahosted.io");
pack.addFormula({
name: "ComputeSolution",
description: "Calculate the solution to a challenge.",