Skip to content

leifgehrmann/advent-of-code-2024

Repository files navigation

advent-of-code-2024

My attempts at the Advent of Code 2024 challenges in Swift.

Structure of the repository

The solutions to the puzzles are in the files Day(01-25).swift.

The solutions are run using Xcode's testing framework. Each unit test has the name Day(01-25)Test.swift. Unit tests allow us to solve the puzzles incrementally, and provide a debugger to fix any issues. The downside of using a unit test is that the code will execute slower.

Because puzzle inputs are under copyright, they are not included in the repository. Puzzle inputs must be added manually by creating files with the name Day(01-25).txt. The tests will be skipped if no puzzle input is present.

Xcode showing the unit tests passing for Day01

Attribution

About

Solutions to Advent of Code 2024 in Swift

Topics

Resources

License

Stars

Watchers

Forks

Languages