AOC 2022. Day 8: Treetop Tree House

— Day 8: Treetop Tree House — The expedition comes across a peculiar patch of tall trees all planted carefully in a grid. The Elves explain that a previous expedition planted these trees as a reforestation effort. Now, they’re curious if this would be a good location for a tree house. First, determine whether there is enough tree cover here to keep a tree house hidden. To do this, you need to count the number of trees that are visible from outside the grid when looking directly along a row or column. ...

December 10, 2022 · 7 min · volyx

AOC 2022. Day 7: No Space Left On Device

— Day 7: No Space Left On Device — You can hear birds chirping and raindrops hitting leaves as the expedition proceeds. Occasionally, you can even hear much louder sounds in the distance; how big do the animals get out here, anyway? The device the Elves gave you has problems with more than just its communication system. You try to run a system update: $ system-update –please –pretty-please-with-sugar-on-top Error: No space left on device Perhaps you can delete some files to make space for the update? ...

December 9, 2022 · 7 min · volyx

Advent Of Code. Day 4: Camp Cleanup

Day 4: Camp Cleanup https://adventofcode.com/2022/day/4 Space needs to be cleared before the last supplies can be unloaded from the ships, and so several Elves have been assigned the job of cleaning up sections of the camp. Every section has a unique ID number, and each Elf is assigned a range of section IDs. However, as some of the Elves compare their section assignments with each other, they’ve noticed that many of the assignments overlap. To try to quickly find overlaps and reduce duplicated effort, the Elves pair up and make a big list of the section assignments for each pair (your puzzle input). ...

December 5, 2022 · 4 min · volyx

Advent Of Code. Day 3: Rucksack Reorganization

Day 3: Rucksack Reorganization Advent Of Code 2022. Day 3 One Elf has the important job of loading all of the rucksacks with supplies for the jungle journey. Unfortunately, that Elf didn’t quite follow the packing instructions, and so a few items now need to be rearranged. Each rucksack has two large compartments. All items of a given type are meant to go into exactly one of the two compartments. The Elf that did the packing failed to follow this rule for exactly one item type per rucksack. ...

December 4, 2022 · 5 min · volyx

Advent of Code. Day 1: Calorie Counting

Day 1: Calorie Counting Link Santa’s reindeer typically eat regular reindeer food, but they need a lot of magical energy to deliver presents on Christmas. For that, their favorite snack is a special type of star fruit that only grows deep in the jungle. The Elves have brought you on their annual expedition to the grove where the fruit grows. To supply enough magical energy, the expedition needs to retrieve a minimum of fifty stars by December 25th. Although the Elves assure you that the grove has plenty of fruit, you decide to grab any fruit you see along the way, just in case. ...

December 2, 2022 · 4 min · volyx