gerikson

joined 2 years ago
[–] [email protected] 20 points 1 month ago (4 children)

"Our righteous warriors are only supposed to kill brown people and women, not captains of industry!!"

[–] [email protected] 3 points 1 month ago* (last edited 1 month ago) (1 children)

I had a lot of trouble because my input was truncated, despite the site warning me about that. Did I listen? I did not.

edit

day 9 discussion

Principal Skinner moment

"Did I miscopy the input?"

"No, it is my algorithm that is wrong"

kinda satisfying to figure out I was correct all along.

Part 2 is not as fast as I'd like (14s), but faster than it was. People on reddit are wittering on about search trees, me I just sling Perl hashrefs around

https://github.com/gustafe/aoc2024/blob/main/d09-Disk-Fragmenter.pl

[–] [email protected] 3 points 1 month ago (4 children)

Time for a new thread for a new week?

[–] [email protected] 3 points 1 month ago

relevant to this sub's interest is this Reddit thread about "LLM cheaters" in AoC:

https://old.reddit.com/r/adventofcode/comments/1h9cub8/discussion_on_llm_cheaters/

[–] [email protected] 4 points 1 month ago

this looks like the same issue I had!

[–] [email protected] 4 points 1 month ago (1 children)

day 8 part 2

Eric added some 0s in the grid which fucked up my existence code, sneaky devil

[–] [email protected] 2 points 1 month ago (1 children)

re: branch cutting

thanks for the tip, I looked into it again and I found I was cutting in the wrong place. Fixed now, and halves the time for part 2

[–] [email protected] 4 points 1 month ago* (last edited 1 month ago) (5 children)

Re: day 7 parts 1 and 2

same here, I was dicking around with combinatorics to get all combos of plus and multiply but realized before I got to the end it was gonna take too long. Then I figured that a DFS was the way to go.

I tried to optimize a bit by exiting early if the cumulative result became too large, but for some reason that gave me incorrect (too low) answers. Part 2 runs in around 1 min anyway.

https://github.com/gustafe/aoc2024/blob/main/d07-Bridge-Repair.pl

[–] [email protected] 5 points 1 month ago

Yes, the person briefly changed their username and then left the site (disowning their comments). There are 2 people with "inactive-user" comments in the thread that simply flounced off to greener pastures.

[–] [email protected] 2 points 1 month ago* (last edited 1 month ago)

day 6

part 2

I also brute-forced this. I figured there's a bit optimization to be done if you "draw a line" to the next obstacle instead of going step by step, and also maybe exclude some areas, but in the end I just set an exit value to break if the number of steps exceeded a certain value and say that was a loop. Took almost 20m but a star is a star.

update I only added obstructions in the original path, which cut the time down to 5 minutes or so.

[–] [email protected] 13 points 1 month ago

An update, a user stated, "with all love and respect": "people will not starting hating Brave but they will start to hate the mod who blocked Brave".

2 hours later they'd removed their account.

view more: ‹ prev next ›