Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/leifgehrmann/advent-of-code-2021

Solutions to Advent of Code 2021 in Swift
https://github.com/leifgehrmann/advent-of-code-2021

advent-of-code swift-script

Last synced: about 20 hours ago
JSON representation

Solutions to Advent of Code 2021 in Swift

Awesome Lists containing this project

README

        

![advent-of-code-2021](./advent-of-code-2021-hero.png)

My attempts at the [Advent of Code 2021](https://adventofcode.com/2021) challenges.

## Solutions

* [![Day-01-Sonar-Sweep](https://github.com/leifgehrmann/advent-of-code-2021/actions/workflows/Day-01.yml/badge.svg?branch=main)](https://github.com/leifgehrmann/advent-of-code-2021/actions/workflows/Day-01.yml?query=branch%3Amain)
* [![Day-02-Dive](https://github.com/leifgehrmann/advent-of-code-2021/actions/workflows/Day-02.yml/badge.svg?branch=main)](https://github.com/leifgehrmann/advent-of-code-2021/actions/workflows/Day-02.yml?query=branch%3Amain)
* [![Day-03-Binary-Diagnostic](https://github.com/leifgehrmann/advent-of-code-2021/actions/workflows/Day-03.yml/badge.svg?branch=main)](https://github.com/leifgehrmann/advent-of-code-2021/actions/workflows/Day-03.yml?query=branch%3Amain)
* [![Day-04-Giant-Squid](https://github.com/leifgehrmann/advent-of-code-2021/actions/workflows/Day-04.yml/badge.svg?branch=main)](https://github.com/leifgehrmann/advent-of-code-2021/actions/workflows/Day-04.yml?query=branch%3Amain)
* [![Day-05-Hydrothermal-Venture](https://github.com/leifgehrmann/advent-of-code-2021/actions/workflows/Day-05.yml/badge.svg?branch=main)](https://github.com/leifgehrmann/advent-of-code-2021/actions/workflows/Day-05.yml?query=branch%3Amain)
* [![Day-06-Lanternfish](https://github.com/leifgehrmann/advent-of-code-2021/actions/workflows/Day-06.yml/badge.svg?branch=main)](https://github.com/leifgehrmann/advent-of-code-2021/actions/workflows/Day-06.yml?query=branch%3Amain)
* [![Day-07-The-Treachery-of-Whales](https://github.com/leifgehrmann/advent-of-code-2021/actions/workflows/Day-07.yml/badge.svg?branch=main)](https://github.com/leifgehrmann/advent-of-code-2021/actions/workflows/Day-07.yml?query=branch%3Amain)
* [![Day-08-Seven-Segment-Search](https://github.com/leifgehrmann/advent-of-code-2021/actions/workflows/Day-08.yml/badge.svg?branch=main)](https://github.com/leifgehrmann/advent-of-code-2021/actions/workflows/Day-08.yml?query=branch%3Amain)
* [![Day-09-Smoke-Basin](https://github.com/leifgehrmann/advent-of-code-2021/actions/workflows/Day-09.yml/badge.svg?branch=main)](https://github.com/leifgehrmann/advent-of-code-2021/actions/workflows/Day-09.yml?query=branch%3Amain)
* [![Day-10-Syntax-Scoring](https://github.com/leifgehrmann/advent-of-code-2021/actions/workflows/Day-10.yml/badge.svg?branch=main)](https://github.com/leifgehrmann/advent-of-code-2021/actions/workflows/Day-10.yml?query=branch%3Amain)
* [![Day-11-Dumbo-Octopus](https://github.com/leifgehrmann/advent-of-code-2021/actions/workflows/Day-11.yml/badge.svg?branch=main)](https://github.com/leifgehrmann/advent-of-code-2021/actions/workflows/Day-11.yml?query=branch%3Amain)
* [![Day-12-Passage-Pathing](https://github.com/leifgehrmann/advent-of-code-2021/actions/workflows/Day-12.yml/badge.svg?branch=main)](https://github.com/leifgehrmann/advent-of-code-2021/actions/workflows/Day-12.yml?query=branch%3Amain)
* [![Day-13-Transparent-Origami](https://github.com/leifgehrmann/advent-of-code-2021/actions/workflows/Day-13.yml/badge.svg?branch=main)](https://github.com/leifgehrmann/advent-of-code-2021/actions/workflows/Day-13.yml?query=branch%3Amain)
* [![Day-14-Extended-Polymerization](https://github.com/leifgehrmann/advent-of-code-2021/actions/workflows/Day-14.yml/badge.svg?branch=main)](https://github.com/leifgehrmann/advent-of-code-2021/actions/workflows/Day-14.yml?query=branch%3Amain)
* [![Day-15-Chiton](https://github.com/leifgehrmann/advent-of-code-2021/actions/workflows/Day-15.yml/badge.svg?branch=main)](https://github.com/leifgehrmann/advent-of-code-2021/actions/workflows/Day-15.yml?query=branch%3Amain)
* [![Day-16-Packet-Decoder](https://github.com/leifgehrmann/advent-of-code-2021/actions/workflows/Day-16.yml/badge.svg?branch=main)](https://github.com/leifgehrmann/advent-of-code-2021/actions/workflows/Day-16.yml?query=branch%3Amain)
* [![Day-17-Trick-Shot](https://github.com/leifgehrmann/advent-of-code-2021/actions/workflows/Day-17.yml/badge.svg?branch=main)](https://github.com/leifgehrmann/advent-of-code-2021/actions/workflows/Day-17.yml?query=branch%3Amain)
* [![Day-18-Snailfish](https://github.com/leifgehrmann/advent-of-code-2021/actions/workflows/Day-18.yml/badge.svg?branch=main)](https://github.com/leifgehrmann/advent-of-code-2021/actions/workflows/Day-18.yml?query=branch%3Amain)
* [![Day-19-Beacon-Scanner](https://github.com/leifgehrmann/advent-of-code-2021/actions/workflows/Day-19.yml/badge.svg?branch=main)](https://github.com/leifgehrmann/advent-of-code-2021/actions/workflows/Day-19.yml?query=branch%3Amain) †
* [![Day-20-Trench-Map](https://github.com/leifgehrmann/advent-of-code-2021/actions/workflows/Day-20.yml/badge.svg?branch=main)](https://github.com/leifgehrmann/advent-of-code-2021/actions/workflows/Day-20.yml?query=branch%3Amain)
* [![Day-21-Dirac-Dice](https://github.com/leifgehrmann/advent-of-code-2021/actions/workflows/Day-21.yml/badge.svg?branch=main)](https://github.com/leifgehrmann/advent-of-code-2021/actions/workflows/Day-21.yml?query=branch%3Amain)
* [![Day-22-Reactor-Reboot](https://github.com/leifgehrmann/advent-of-code-2021/actions/workflows/Day-22.yml/badge.svg?branch=main)](https://github.com/leifgehrmann/advent-of-code-2021/actions/workflows/Day-22.yml?query=branch%3Amain)
* [![Day-23-Amphipod](https://github.com/leifgehrmann/advent-of-code-2021/actions/workflows/Day-23.yml/badge.svg?branch=main)](https://github.com/leifgehrmann/advent-of-code-2021/actions/workflows/Day-23.yml?query=branch%3Amain)
* [![Day-24-Arithmetic-Logic-Unit](https://github.com/leifgehrmann/advent-of-code-2021/actions/workflows/Day-24.yml/badge.svg?branch=main)](https://github.com/leifgehrmann/advent-of-code-2021/actions/workflows/Day-24.yml?query=branch%3Amain)
* [![Day-25-Sea-Cucumber](https://github.com/leifgehrmann/advent-of-code-2021/actions/workflows/Day-25.yml/badge.svg?branch=main)](https://github.com/leifgehrmann/advent-of-code-2021/actions/workflows/Day-25.yml?query=branch%3Amain)

† _A solution was found, but only by iteratively solving the puzzle piece-wise and inserting the results back into the code, essentially hard-coding the solution. It also performs sub-optimally, taking dozens of minutes to execute._

## Attribution

* Hero background image by [Sharon McCutcheon](https://unsplash.com/photos/62vi3TG5EDg) on [Unsplash](https://unsplash.com/).