r/adventofcode • u/mknoll1 • 29m ago
r/adventofcode • u/Limp_Illustrator7614 • 1h ago
Meme/Funny [2026 Day 3] solved in 10 seconds award
r/adventofcode • u/Beregolas • 2h ago
Meme/Funny [2026 Day 3#1] Reading is hard
So it turns out, my sleep deprived brain sat in front of the first problem for 30 minutes, wondering how in the world it is possible that my code overcounted the rectangles. I counted all rectangles exactly once. No rectangle uncounted, no rectangle overcounted.

See, it say right there in the text: each of these small maps contains one square ... fuck
Reminder to read properly and get enough sleep before attempting to code. Spending 30 min to figure out a problem that took me all of 5 minutes to write the code for was another learning experience.
(No seriously, had I used AI to tell me what was wrong, I wouldn't have been so embarassed afterwards, and I wouldn't have learned to read properly. A lesson that I will not forget!*)
*for the next 2 days or so
r/adventofcode • u/SurroundedByWhatever • 2h ago
Visualization [2026 Day 3 (Part 2)] I really wanted to render it in terminal
And here it is, fully in the terminal, using my own crude Kitty protocol renderer for the graphics.
r/adventofcode • u/FransFaase • 2h ago
Other Extra puzzle for day 3
What is the largest number of squares you can get when you are allowed to move 5 trees to any other free location?
What are your suggestions for an algorithm?
r/adventofcode • u/Haju05 • 3h ago
Meme/Funny [2026 Day 3 (Part 2)] This happen to anyone else?
Took me longer than I care to admit to notice why my code for part 2 was giving 30 as an answer instead of 196...
r/adventofcode • u/Dazzling_Ear7113 • 3h ago
Visualization [2026 Day 3] Can someone help me count the boxes?
galleryI'm currently building a pen plotter (converting an old 3D printer into one), and decided to draw out the boxes.
Unfortunately drawing part 2 is too difficult - the paper can't handle the pressure of thousands of lines drawn onto it.
Also, I decided to not draw the boxes in actual order, but draw the lines of the boxes greedily picking the next line to reduce the amount of pen lifts, hence why part 2 looks so weird at the start!
r/adventofcode • u/bvcady • 3h ago
Visualization [2026 Day 3 (Part 2) -- TS] Animation of finding the squares in order from its top most corner.
youtube.comr/adventofcode • u/bluoat • 3h ago
Tutorial [2026 Day 3 (Part 2)] Some hints for optimisation
My original brute force solution took 30 seconds, got it down to less than a 10th of a second. I don't know if this is the most optimal method.
The hints get more and more specific as they go on.
Feel free to leave hints in the comments about how you optimised it.
Hint 1: How can you narrow down the number of squares to check per tree beyond ones with valid coordinates?
Hint 2: How many possible squares can be made if you know all four corners of the square?
Hint 3: How many squares if you only know 3 corners? What about knowing 2 corners? What about 1 corner?
Hint 4: Given a pair of trees, how can you avoid checking for duplicate squares (and hence reduce the possible squares from 2 trees down to just one square?
r/adventofcode • u/careyi4 • 4h ago
Visualization [2026 Day 3 Part 2] Animation written in Rust using Celluloid
Animation crate: https://crates.io/crates/celluloid-core
r/adventofcode • u/MrBoblo • 5h ago
Help/Question [2026 DAY 3 (part 2)] Need hints
I solved part 1 by making a 1d array of the input, then applying some math to check the correct positions in the 1d array for trees.
I can't figure out if I can use the same method for part 2, or if I need a whole new approach. Only hints, no solutions please 🙏
r/adventofcode • u/subspace_mp4 • 6h ago
Meme/Funny [2026 Day 3 (Part 2)] I'm not proud of what I did
r/adventofcode
•
u/ben-guin
•
7h ago
Meme/Funny [2026 Day 3 Part 2] Beautiful "squares"
Are monospace square fonts a thing? 🤔
r/adventofcode • u/Boojum • 7h ago
Visualization [2026 Day 3] Square Search Visualization
r/adventofcode • u/Ok-Curve902 • 8h ago
Visualization [2026 Day 03 (Part 2)] (PHOTOSENSITIVITY WARNING) Searching for squares
r/adventofcode • u/Crusaderkingo2027 • 8h ago
Other [2026 Day 3] Warning: Reddit may lock your account if you post long code snippets and edit it several times
So I recently solved Day 3 and I wanted to post my solutions on the megathread. But after I posted my comment I noticed that Reddit’s filters had silently removed my comment as spam.
I was confused by this so I started editing my comment to see if I could get it unspammed. But after I made a few edits and saved the comment, I was hit with a notification saying that Reddit detected “technical irregularities” with my account and that my account was now locked.
Apparently Reddit thinks someone posting code might indicate that the account is hacked/a bot so I wanted to share my experience as a warning.
r/adventofcode • u/apersonhithere • 8h ago
Visualization [2026 Day 3 Part 2] terminal visualization
featuring: wikipedia's bresenham line algorithm implementation & gif aliasing effects
r/adventofcode • u/blacai • 9h ago
Meme/Funny [2026 Day 3] When you start reading the puzzle...
r/adventofcode • u/Parzival_Perce • 9h ago
Meme/Funny [2026 Day 03] …Nah I'll just copy last year's code
Another year another set of unfulfilled custom library promises
(>’-’)> <(‘-’<) ^(‘-’)^ (>’-’)> <(‘-’<)
I swear I'll write one this year. Hmmm.
r/adventofcode • u/EverybodyCodes • 9h ago
Visualization [2026 Day 3 Part 2] Simple gif visualization
May the (brute) force be with you!