/aoc23

Advent of Code 2023

Primary LanguageGo

AOC 23

Advent of Code. Playing with Go this year.

Day 1 problem statement:

On each line of calibration.txt, the "calibration value" for that row can be found by combining the first digit and the last digit (in that order) to form a single two-digit number. The digits can be either [0-9] or spelled out in letters (eg. "one"). What is the sum of all of the calibration values?

Day 2 problem statement:

  1. How many of the inputs are possible if there are 12 Red, 13 Green, and 14 Blue balls total. Find the sum of their IDs.
  2. Then, for each game, find the minimum number of balls possible for each colour, multiply those numbers together, and sum the results.

Day 3 problem statement:

  1. All numbers adjacent to a non-.-symbol are relevant engine parts. What's the sum of those numbers?
  2. Gears are * symbols that are adjacent to exactly two engine parts. Their ratio is the multiple of those two parts. Find the sum of all gear ratios in the engine.

Day 4 problem statement:

  1. Each card has winning numbers and your numbers, separated by |. A match is worth a point, with each subsequant match on a card double the points. Find the sum of points for all cards.
  2. Instead, each match copies a following card, with the number of cards copied equal to the number of matches. Copies similarly copy subsequent cards. What's the total number of cards after all copies have occurred?

Day 5 problem statement:

  1. Each "mappe" includes a directive of how to translate source value (column 1) to destination value (column zero), valid for a range (column 2) of source and desination values. Going through each of these mappes in order, find the lowest value output of the final mappe, given the inputs provided.