These are my solutions to 2019's famous Advent of Code. After hearing about 2019's intcode computer, having done Day 17 from 2024, I had to give this one a look.
Solutions make use of cargo-aoc code helper (here).
All solutions linked below:
| Day | Title | 1 β | 2 β | Solution | Rating |
|---|---|---|---|---|---|
| 01 | The Tyranny of the Rocket Equation | 210ns | 1.26Β΅s | day01.rs | π |
| 02 | 1202 Program Alarm | 832ns | 513Β΅s | day02.rs | π |
| 03 | Crossed Wires | 89.0Β΅s | 89.0Β΅s | day03.rs | |
| 04 | Secure Container | 3.92Β΅s | 10.9Β΅s | day04.rs | π |
| 05 | Sunny with a Chance of Asteroids | 4.07Β΅s | 4.07Β΅s | day05.rs | π |
| 06 | Universal Orbit Map | 49.6Β΅s | 30.5Β΅s | day06.rs | π¦ |
- I thought having an array as a parameter cache in the VM would speed things up, but apparently simply returning an array is consistently marginally faster.