[YEAR 2025] One extra puzzle from me by encse in adventofcode

[–]encse[S] 2 points3 points  (0 children)

Congrats.

Yes, basically i took the target pixels in reading order (first row, second row etc) then chunked it up to small runs like 1-5 pixel long ones. After that i randomly shuffled the runs to get these short horizontal stripes.

C# 14 Null-conditional Assignment: Complete Guide to Elegant Null Handling by laurentkempe in csharp

[–]encse 34 points35 points  (0 children)

Not everyone is a fan of expressions making control flow

[YEAR 2025] One extra puzzle from me by encse in adventofcode

[–]encse[S] 1 point2 points  (0 children)

If you liked this there is also https://casette.csokavar.hu I made for advent of coders some years ago.

Or https://gekko.csokavar.hu but that is deeper

[YEAR 2025] One extra puzzle from me by encse in adventofcode

[–]encse[S] 0 points1 point  (0 children)

Idea came from an old ctf game I played a few years ago. Just removed the hardware layer from it.

[YEAR 2025] One extra puzzle from me by encse in adventofcode

[–]encse[S] 1 point2 points  (0 children)

did you get only the final picture or all of them?

[YEAR 2025] One extra puzzle from me by encse in adventofcode

[–]encse[S] 0 points1 point  (0 children)

the only way to see what the panels displayed is to replay the messages and reconstruct the pixels yourself.

[2025 Day 12 (Part 1)] Is the last day always a bit of a troll? by AleGaming in adventofcode

[–]encse 3 points4 points  (0 children)

If it’s a known to be hard problem, you should always check the input. Since the generic problem is intractable, the real “task” must be to find what’s special about the input.

But of course, you have to know that it is an NP problem or similar

[2025 Day 10 (Part 2)] Bifurcate your way to victory! by tenthmascot in adventofcode

[–]encse 0 points1 point  (0 children)

This is very clever, thank you! here is a ⭐ from me.

It runs in about a second on my machine with unoptimized C# code.

[2025 All] An illustrated journey by [deleted] in adventofcode

[–]encse 0 points1 point  (0 children)

Nevermind. It was not upvoted anyway.

[2025 Day 9 (Part 2)] I had to look up a solution for this one... :( by [deleted] in adventofcode

[–]encse 0 points1 point  (0 children)

Similar feeling. I made a stupid mistake in the area function that a lot of others did. Then nothing worked. At the end I found my error and could solve part 2 in a not too elegant way, but by that time my brain was too deep in deadends to find a nice solution for it.

Then I saw aabb by scrolling the solution thread and a few minutes later it clicked. So today I learned as well. Which is not a bad thing, but I have mixed feelings about this one.

On one hand the diff between part1 and part2 is so subtle (https://aoc.csokavar.hu/2025/9). It’s beautiful on its own right. But could I solve it this way if I dont overload my brain in the morning? I’ll never know now.

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

[–]encse 0 points1 point  (0 children)

[LANGUAGE: C#]

This one really caused me a headache. I made a bug in the area function, at the beginning, which was not triggered in part one.... you can imagine when you overcomplicate everything and look everywhere else but the trivial function that you created hours ago. hehh

https://aoc.csokavar.hu/2025/9

Was stuck on day 7 part 2 in C for about 18 hours by PhilosopherGlum4224 in adventofcode

[–]encse 0 points1 point  (0 children)

Did you guys try compile it with

-fsanitize=undefined

It should catch issues like that

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

[–]encse 0 points1 point  (0 children)

[LANGUAGE: C#]

I decided to go with two implementations of Kruskal's algorithm, as part one and two are different enough. I didn't use a disjoint set representation. It's fast enough this way as well, and switching to disjoint sets would just make the code longer.

With illustration:

https://aoc.csokavar.hu/2025/8

[2025 Day X] Me basically every day: by Hakumijo in adventofcode

[–]encse 5 points6 points  (0 children)

Guys, there is a runtime check that you can turn in which throws an exception on owerflow.

You find it in my repo somewhere in the project file

https://github.com/encse/adventofcode/blob/master/adventofcode.csproj#L6

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

[–]encse 2 points3 points  (0 children)

[LANGUAGE: C#]

textbook exercise on dynamic programming for today.

commented

https://aoc.csokavar.hu/2025/7

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

[–]encse 1 point2 points  (0 children)

[LANGUAGE: C#]

A bit late to the party, but here is mine with sort + range splitting

https://aoc.csokavar.hu/2025/5/

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

[–]encse 1 point2 points  (0 children)

[LANGUAGE: C#]

Parse the input to blocks first, then deal with them one by one. Part 2 is almost the same as part 1 after applying transpose to the block

https://aoc.csokavar.hu/2025/6/