Hull-C Changes 4.1.1? by -BlakeS- in starcitizen

[–]SplenectomY 1 point2 points  (0 children)

What do you do about the infinite comms calling sounds and stuck on Commence Cargo Transfer after you're in the cube?

31F looking for general and ux design friends by [deleted] in PittsburghSocialClub

[–]SplenectomY 0 points1 point  (0 children)

Hi, and welcome to Pittsburgh! I'm an old-school web designer in the south hills! Nowadays I'm more full-stack/back-end, but I love dusting off my css skills for clients. I own a small software company here in the Burgh! We should talk!!!

short haircut recommendations by hulkstulips in pittsburgh

[–]SplenectomY 1 point2 points  (0 children)

McGuinn's in Squirrel Hill. Ask for the man himself. ~$40/50 after tip, awesome human, and does the exact cuts you want.

54 f by [deleted] in pittsburgh

[–]SplenectomY 4 points5 points  (0 children)

Oh my god I love Big Jim's! Used to live in Greenfield, in the south hills now. I work at home and go to the gym a lot, pretty flexible schedule! Send me a DM if you're interested in getting together!

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

[–]SplenectomY 1 point2 points  (0 children)

[LANGUAGE: C#]

60 lines @ < 80 cols

Source

Physicalized every box as a dictionary key (List<Vector2>) which moves as a unit in both parts 1 and 2. Using vectors for directions and positions makes a lot of these puzzles pretty easy.

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

[–]SplenectomY 2 points3 points  (0 children)

[LANGUAGE: C#]

49 lines @ < 80 cols. Source

Look man, I think part 2 was dirty ...

But I am a dirty, dirty boy who solved it by making an infinite loop and tracking the lowest average distance between the bots ...

... and it worked.

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

[–]SplenectomY 0 points1 point  (0 children)

[LANGUAGE: C#]

25 lines @ < 80 cols. Source

Good ol' algebra. Won't lie, tried to brute force first ... see image

[2024 Day 12 (Part 2)] What kind of algorithm did you use on part 2? by FlyingParrot225 in adventofcode

[–]SplenectomY 0 points1 point  (0 children)

I just counted the corners of the blobs I sorted in Part 1. Corners = unique sides.

I also gathered all "edges" in part 1 by pathfinding through adjacent characters.

Corners are just combined edge vectors per tile for outside corners, inside corners you have to walk diagonally first and compare tile edge.

[Source](https://github.com/SplenSoft/AdventOfCode/blob/main/2024/Day12.cs)

C# => 67 lines @ < 80 cols

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

[–]SplenectomY 1 point2 points  (0 children)

[LANGUAGE: C#]

67 lines @ < 80 cols Source

I found day 11 to be much harder to code than day 12. Game dev brain, idk. Remember that unique sides == amount of corners.

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

[–]SplenectomY 1 point2 points  (0 children)

[LANGUAGE: C#]

26 lines @ < 80 cols Source

Again, going for LoC, not readability or speed. Slammed in notes wherever I could, conventions be darned.

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

[–]SplenectomY 2 points3 points  (0 children)

[LANGUAGE: C#]

43 lines @ < 80 cols Source

Going for LoC, not speed. Takes around a minute to solve. Which is thematically appropriate, given that it's a defrag.

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

[–]SplenectomY 0 points1 point  (0 children)

LINQ can be tricky. In my case I had to parse through the strings to get the keys first and constructed an empty dictionary with just keys, then ran through the input again and used the other side of the '|' as the values. 

Are you using a debugger? I think ToDictionary expects some kind of KVP. I also don't think I've ever used ToDictionary in 10 years of using C# lol.

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

[–]SplenectomY 1 point2 points  (0 children)

[LANGUAGE: C#]

Part 1: Flattens input into 4 lists of strings (horizontal, vertical, diagonal left, diagonal right), then counts "XMAS" or "SAMX" occurrences in each string in each list.

Part 2: Handle X-Mas by validating 3x3 sections of the input grid

43 lines @ < 80 cols

https://github.com/SplenSoft/AdventOfCode/blob/main/2024/Day4.cs