Regex, towers, and each_with_index - Advent of Code 2022 - Day 5 with Ruby
Solution for Day 5 of the Advent of Code in 2022 with Ruby. In this solution, we'll talk a bit about regex. The hardest part of this problem, in my opinion, is deserializing the input into useful data structures.
Challenge: https://adventofcode.com/2022/day/5
Solution: https://gist.github.com/6519248312ec4d6596ddd320583ba685
#ruby #adventofcode