Advent Of Code 2022

Introduction to Advent of Code 2022

In the next couple of weeks I'll be working on last years Advent of Code to get a better understanding of Kotlin.

Advent of Code 2022, Day one - Sanitizer

Parse the input for day one into a table of elves.

Advent of Code 2022, Day one - Part One

Count the calories that each elve is carrying

Advent of Code 2022, Day one - Part Two

Calculate which elve is carrying the most calories

Advent of Code 2022, Day two - Sanitizer

Turn the input into a list of rock-paper-scissor games.

Advent of Code 2022, Day two - Part One

Get the outcome of each rock-paper-scissors match.

Advent of Code 2022, Day two - Part Two

Calculate the strategy we need to play to get the expected outcome based on our opponents move.

Advent of Code 2022, Day three - Sanitizer

Turn the input into a list of rucksacks.

Advent of Code 2022, Day three - Part One

Find the same items that are stored in the two compartments of each rucksack.

Advent of Code 2022, Day three - Part Two

Find the item type that is common between two or more elves.

Advent of Code 2022, Day four - Sanitizer

Turn the input into a list of assigned compartments for the elves to unload.

Advent of Code 2022, Day four - Part One

Find the compartments that overlap between the different assignments.

Advent of Code 2022, Day four - Part Two

Find the compartments that overlap completely between the different assignments.

Advent of Code 2022, Day five - Sanitizer

Turn the input into a list of stacks and another list of operations for the crane.

Advent of Code 2022, Day five - Part One

Execute the instructions to move the cargo from one stack to another.

Advent of Code 2022, Day 5 - Part Two

Execute the instructions to move the cargo from one stack to another in the same order.

Advent of Code 2022, Day six - Sanitizer

Turn the input into a stream returned from a signal.

Advent of Code 2022, Day six - Part One

Find the start of packet marker in the data stream.

Advent of Code 2022, Day six - Part Two

Get the first character after the start of packet marker from the stream.