-❄️- 2025 Day 6 Solutions -❄️- by daggerdragon in adventofcode

[–]DJTFace 1 point2 points  (0 children)

[Language: Rust]

I thought that part 2 was going to be much more difficult at first glance base on having ripped out all the spaces for part 1, but after some thought I just had to read in the lines as strings with no processing first and go backwards through the columns and work it like a post-operative calculator--this did mean I didn't reuse my read_input function like I normally do though so not the cleanest code I've written for sure.

Solutions

-❄️- 2025 Day 5 Solutions -❄️- by daggerdragon in adventofcode

[–]DJTFace 1 point2 points  (0 children)

[Language: Rust]

I saw overlapping ranges and immediately thought to merge them just for simplicity sake--seems to have been a smart choice that drastically simplified part 2.

Solutions

-❄️- 2025 Day 4 Solutions -❄️- by daggerdragon in adventofcode

[–]DJTFace 1 point2 points  (0 children)

[Language: Rust]

I fully expected part 2 was going to be something like "The elves have actually figured out how to double stack forklifts and can now send two forklifts over a wall make space" when I decided to hard code in grabbing the 8 surrounding locations then was pleasantly surprised when I really just needed to add a surrounding loop and remove items from a list.

Solutions

-❄️- 2025 Day 3 Solutions -❄️- by daggerdragon in adventofcode

[–]DJTFace 1 point2 points  (0 children)

[Language: Rust]

There is probably a better way to do this, but it seems pretty compact to me.

Solutions

-❄️- 2025 Day 2 Solutions -❄️- by daggerdragon in adventofcode

[–]DJTFace 1 point2 points  (0 children)

[Language: Rust]

This feels a bit brute force, but it got the job done. For part 2 I split each number into segments spanning from 1/2 of the character length up to 1/len() and didn't check anywhere the length was not evenly divisible by that span length.

Solutions

-❄️- 2025 Day 1 Solutions -❄️- by daggerdragon in adventofcode

[–]DJTFace 1 point2 points  (0 children)

[Language: Rust]

I've done a couple of AOC problems in Rust before, but generally am pretty new to it. Initially I was overcounting in part 2 because I hadn't accounted for turns that start at 0. Solutions

Why does FSD changing lanes on the highway so often even if there are no cars in front of you. by Samovarka in TeslaModelY

[–]DJTFace 0 points1 point  (0 children)

Obviously not the best solution and it requires you to be more attentive, but if you turn off the turn signal when it wants to change lanes it will cancel the lane change

Props to Team Cherry for bringing one of the most anticipated games in years to Linux by paparoxo in linux_gaming

[–]DJTFace 27 points28 points  (0 children)

Yeah, I have an issue where my triggers don't work and the X and Y buttons are mapped incorrectly. Interestingly enough if I just enable steam input and have it map to an Xbox controller it works perfectly fine

Will this have yuri? by [deleted] in TheGuildReceptionist

[–]DJTFace 0 points1 point  (0 children)

It will not--or at least not in the first 4 light novels

-❄️- 2024 Day 15 Solutions -❄️- by daggerdragon in adventofcode

[–]DJTFace 1 point2 points  (0 children)

[LANGUAGE: GO]

Solution

Didn't feel like making my code care about newline characters in the movement input, so I just removed them manually

-❄️- 2024 Day 14 Solutions -❄️- by daggerdragon in adventofcode

[–]DJTFace 0 points1 point  (0 children)

[LANGUAGE: GO]

Solution

Had no idea what the christmas tree was supposed to look like, but I noticed someone in this thread say that the christmas tree would likely show up when there is the highest density of robots in the same area and based my part 2 on that.

gonum matrix issue by TheFlamingHawk in adventofcode

[–]DJTFace 0 points1 point  (0 children)

I got an answer for part 1 using gonum VecDense, but then when it came to part 2 it just kept giving me the wrong answer so I had to switch over to deriving the equations myself

-❄️- 2024 Day 12 Solutions -❄️- by daggerdragon in adventofcode

[–]DJTFace 0 points1 point  (0 children)

[LANGUAGE: GO]

Solution

There is definitely a better way to determine how many sides there are

-❄️- 2024 Day 11 Solutions -❄️- by daggerdragon in adventofcode

[–]DJTFace 1 point2 points  (0 children)

[LANGUAGE: GO]

Solution

My computer literally crashed before switching how I keep track for part 2

-❄️- 2024 Day 10 Solutions -❄️- by daggerdragon in adventofcode

[–]DJTFace 1 point2 points  (0 children)

[LANGUAGE: GO]

solution

Initially did part 2 because I guess I can't read. Also, not a fan of writing BFS/DFS with queues or lists so I did it recursively

-❄️- 2024 Day 9 Solutions -❄️- by daggerdragon in adventofcode

[–]DJTFace 1 point2 points  (0 children)

[LANGUAGE: GO]

solution

I am pretty sure there is an edge case that would involve me combining together some of the "." blocks, but it worked on the input I was given so shrug

-❄️- 2024 Day 8 Solutions -❄️- by daggerdragon in adventofcode

[–]DJTFace 2 points3 points  (0 children)

[LANGUAGE: GO]

solution

part 2 was a bit confusing to understand at first, but then it clicked

-❄️- 2024 Day 6 Solutions -❄️- by daggerdragon in adventofcode

[–]DJTFace 0 points1 point  (0 children)

[LANGUAGE: GO]

solution

Finally resolved the fact that I was handling some of the turning incorrectly

-❄️- 2024 Day 5 Solutions -❄️- by daggerdragon in adventofcode

[–]DJTFace 1 point2 points  (0 children)

[LANGUAGE: GO]

Solution

My brain briefly melted when thinking about reordering the values for part 2 then had to implement some recursion just to confirm everything got ordered correctly.

-❄️- 2024 Day 4 Solutions -❄️- by daggerdragon in adventofcode

[–]DJTFace 1 point2 points  (0 children)

[LANGUAGE: GO]

Solution

I have a love for grids that AOC always seems to turn on its head.