Advent of Code. Playing with Go this year.
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?
- 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.
- Then, for each game, find the minimum number of balls possible for each colour, multiply those numbers together, and sum the results.
- All numbers adjacent to a non-
.
-symbol are relevant engine parts. What's the sum of those numbers? - 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.
- 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. - 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?
- 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.