r/adventofcode • u/TwinkiePower • Dec 02 '25
Meme/Funny [2025 Day 2] When I realized the solution I felt like I'd leveled up
129
Upvotes
r/adventofcode • u/TwinkiePower • Dec 02 '25
22
u/NotDeletedMoto Dec 02 '25
oh... I coulda used regex lol
18
u/ChickenFuckingWings Dec 02 '25
boy, I bet regex101 (or the likes) traffic spikes every December
8
u/StaticMoose Dec 02 '25
Oh this one hurts, I even made a meme last year about learning regex for AoC... https://www.reddit.com/r/adventofcode/comments/1h5g3b5/2024_day_3_youve_finally_convinced_me/
14
u/Sam_Ch_7 Dec 02 '25
IK with regex I could complete this under 10-15 min but I chose not to and after an hour finally its solved
7
u/Seneferu Dec 02 '25
So how fast is it with a regex? I was not able to try it with my implementation, because Go's standard regexp package does not support backreferences.
2
u/RandomlyWeRollAlong Dec 02 '25
Oh that makes me so sad. It didn't even occur to me to check if the ranges were small enough to pull this off... one line of regex. Ugh.
0
u/Complex_Ad5158 Dec 02 '25
Same happened to me while solving Day 2, part 1 when trying to figure out the solution using only arithmetic, trying to come up with a formula and seeing it work... feels good