Source: Day 8: Playground
Full solution for today (spoilers!).
Part 1
Given a list of points in 3D space, connect the 1000 closest nodes to each other. Calculate the product of the size of the 3 largest resulting regions?
Full solution for today (spoilers!).
Given a list of points in 3D space, connect the 1000 closest nodes to each other. Calculate the product of the size of the 3 largest resulting regions?
Full solution for today (spoilers!).
You are given a map like this:
.......S....... ............... .......^....... ............... ......^.^...... ...............A laser shines from the top
Sand splits each time it hits a^, making this:.......S....... .......|....... ......|^|...... ......|.|...... .....|^|^|..... .....|.|.|.....The two lasers in the center of this example merge to count as one laser.
Count how many times lasers hit splitters.
Full solution for today (spoilers!).
Given input like this:
123 328 51 64 45 64 387 23 6 98 215 314 * + * +Apply the operation in each column then sum the results.
Full solution for today (spoilers!).
Given a list of ranges (inclusive) and a list of IDs, how many of the IDs are in any range?
Full solution for today (spoilers!).
Given a grid of solid
@and empty cells., count how many solid cells have less than 4 neighbors.
Full solution for today (spoilers!).
Given a list of numbers, for each find the two digits in the number which if concatenated make the largest. Sum these values.
For example:
811111111111119should be89.
Full solution for today (spoilers!).
Given a list of ranges
a-b(ie11-22), sum all values that are made of two repeated chunks of digits (ie123123)
Full solution for today (spoilers!).
Implement a padlock with 100 values (0-99). Run each command (
L23to turn left by 23 places) and then output the number of times you landed on zero.
It’s back! (Advent of Code)!
It’s been ten years (of advent of code, I haven’t done them all (yet)) and oh what a ten years it’s been. This time around, there will be only 12 days instead of 25, but honestly, that means I’m not working on these right up until Christmas. So I’m okay with this.
Once again, Rust! But this time, I won’t be using cargo-aoc, instead I wrote my own proc macros. Mostly to see if I could. 😄 See this section for more information.
Full solutions will once again be posted to GitHub (including previous years and possibly some I haven’t written up yet): jpverkamp/advent-of-code
Woodworm is a cute little PICO-8 puzzle game about a cute little worm… that eats wood. You can play it for free right now right here!
The goal is to turn this:

Into this:

There are a few rules to keep in mind:
The block (and the worm) are affected by gravity
The block can be split by into multiple pieces by eating it completely apart

The worm can crawl up the side of blocks, so long as two (consecutive) segments of the worm are touching walls

And that’s really it.
So let’s solve it!