Day seven feels like one of the easiest if you write it in your most fluent language. Part two almost follows directly from part 1. There's little change needed. Most of the challenge for me came from using a language I don't use hardly ever.
Posts by Jeff Snow
I just completed "Bridge Repair" - Day 7 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/7
Woot.
github.com/thisisjeffsn...
Nothing wrong with them, just wasn't using them correctly at first, can't overwrite chars in an array of strings, for example. Difference between [a, b] and [a][b] indexing for 2d arrays. Just quirky stuff I'm picking up.
Today is C, but haven't gotten far yet on the puzzle. I'm still in familiar territory but it's getting less and less comfortable.
Agreed. Using hash sets to determine a loop (x, y, dir) on visited cells and it runs instantly in C#.
I just completed "Guard Gallivant" - Day 6 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/6
Oof. Finally.
Good to know. Thanks!
What do you mean they're going to get harder? 🥺 I thought someone said they don't necessarily increase in difficulty. I'm still stuck on P2 for today. Ugh.
The guards in D6P2 be like...
Which is ironic, because this was me trying to figure out P1 and why I was in an endless loop not hitting my exit condition. Turns out C# has jagged and rigid arrays. +1 for learning
#AdventOfCode
In some sense, medieval people were much better prepared for AGI (or whatever). They already believed in higher entities—kings, emperors, gods—and weren’t afraid of the unknown. Modern humans: “We’re doomed, AI will conquer!” Medieval folks: “Meh, one more god. No big deal.”
Nice one. That set you up quite well for part 2.
Interesting how the frequency and volume stays consistent even with aggressive banning of addresses.
Sorry for your loss. Deepest condolences. 😔
They should do a Calculator App Wrapped where it shows you the dumbest calculations you did this year. Real moron stuff like 20% off 20, or 1x8, or 6+9
Excellent! 👌
If this post gets 10 likes, I will do #AdventOfCode in Python. If it gets 20 likes, I will do it in C. If it gets 40 likes, I will do it in Assembly.
I've completed "Print Queue" - Day 5 - Advent of Code 2024 #AdventOfCode adventofcode.com/2024/day/5
And there was much rejoicing github.com/thisisjeffsn...
Ahhh, spent all morning uncomfortably in Java for day 5 part 1... done. What could they possibly make me do for part two? Ohhh... #AdventOfCode
The sample could be much clearer by demonstrating exactly which strings were valid by circling them just like you would in a word search. Agreed.
Thank you. I neglected to read that. The repo and commit history have been updated to exclude input data. I appreciate you!
For day 4 part 1? No, the word XMAS has its letters adjacent to one another in either a row, or column, or diagonal.
Absolutely! My favorite for Day 4 so far has been @patascientist.bsky.social using complex numbers as a form of rotation for the different string orientations in the grid. I like how so many people are open about showing their code, so you get to see a lot of different perspectives.
How festive. That's so cool!
Right, I gave you my solution for day two instead of day three like you asked. I used regex for day 3 and just iterated the matches carefully with toggle.
Yep, I need to relearn my integers. Oof.
Just subtly foreshadowing skynet's existence, no worries. Lol... 🙃
Four. Two rows. One column. One negative diagonal.
Adorable! 🥰
Not yet, is there performance to be gained from that? Probably right? If I iterate character by character?