No description
  • Gleam 83.4%
  • Nix 13.4%
  • JavaScript 3.2%
Find a file
2026-11-30 21:39:30 -08:00
inputs/day01 day1 2026-11-30 21:39:30 -08:00
src day1 2026-11-30 21:39:30 -08:00
test day1 2026-11-30 21:39:30 -08:00
.gitignore day1 2026-11-30 21:39:30 -08:00
flake.lock day1 2026-11-30 21:39:30 -08:00
flake.nix day1 2026-11-30 21:39:30 -08:00
gleam.toml day1 2026-11-30 21:39:30 -08:00
manifest.toml day1 2026-11-30 21:39:30 -08:00
README.md day1 2026-11-30 21:39:30 -08:00

Advent of Code 2026

The project uses Gleam and runs on Node.js.

  1. Open the development shell from the project root.

    nix develop
    
  2. Run the tests.

    gleam test
    

Day 01

Path Contents
src/aoc/day01.gleam The Day 01 solver scaffold
inputs/day01/example.txt Sample data for the file reader test
inputs/day01/input.txt Your local puzzle input. Git ignores this file.
test/aoc_2026_test.gleam Tests for file contents and paths

The Day 01 scaffold reads the selected input and reports that it needs a solver. After you implement solve, run either command from the project root.

gleam run -- 1 example
gleam run -- 1

The first command reads example.txt. The second reads input.txt.

For each new day, add a solver under src/aoc/ and make an entry in solve in src/aoc_2026.gleam. Use two digits in the module name and the directory name under inputs/.