Advent Of Code 2024 Day 1 Solution. We are given two lists here, the first part aims to find the absolute difference (distance) between each element sorted from smallest to largest. Every day challenge has an input, that follows the pattern day_#{n}, the solution module, day_#{n}.ex, and the test file day_#{n}_test.ex.
Parse the input file, transpose and sort it, and map that to a pair of arrays first and second. Advent of code 2024 solutions.