The puzzle was the good old count the occurrence of words in a book problem, just with numbers instead of words. Used Swift Dictionary, .sorted, .prefix, .map and .reduce to get the correct answer. Part 2 was just flipping the > to < in sorted.
Search
2 results for “anttijuu”
-
I just completed "Dusty Shed" - Day 1 - Advent of Code 2026 #AdventOfCode #swiftlang https://adventofcode.com/2026/day/1
Part 1 took 0.000310667 seconds, part 2 took 0.000258333 seconds (MacBook Pro M2, 16GB).